Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Colorize command output



On Mon, 21 Feb 2005 17:16:43 +0100,  wrote:

>Hi,
>
>To make conflicts stand out, I'd like to colorize the output of the svn 
>command so that lines starting with C are displayed in red. My first 
>shot at this was
>
>% svn status | sed -e 's/^C/\e[31mC\e[0m/g'
>
I guess you could cheat by using grep as a colorizer

echo "fred" | grep --color '.' 

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips



Messages sorted by: Reverse Date, Date, Thread, Author