<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2884: 256 color support



On Wed 25.Apr.07 20:05, Moritz Barsnick wrote:
it should have returned "8".
You sed expression is too greedy.

So make it:
-> source $HOME/.muttrc-color-`infocmp | grep 'colors#' | \
  sed 's/.*colors#\([0-9]\+\).*/\1/'

I was trying to avoid stating the obvious, but since we're "fixing" the above mentioned expression, why are you using grep and sed, when sed alone is perfect at replacing grep?

source $HOME/.muttrc-color-`infocmp | sed -n 
'/colors#/s/.*colors#\([0-9]\+\).*/\1/p'`

Cheers.

--
redondos

Attachment: pgpFOy2t0nKG7.pgp
Description: PGP signature