From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8725 invoked from network); 21 Feb 2005 16:35:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Feb 2005 16:35:40 -0000 Received: (qmail 19000 invoked from network); 21 Feb 2005 16:35:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Feb 2005 16:35:34 -0000 Received: (qmail 10581 invoked by alias); 21 Feb 2005 16:35:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8536 Received: (qmail 10566 invoked from network); 21 Feb 2005 16:35:23 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Feb 2005 16:35:23 -0000 Received: (qmail 17948 invoked from network); 21 Feb 2005 16:35:23 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 21 Feb 2005 16:35:11 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D3GTD-0004c9-Is for zsh-users@sunsite.dk; Mon, 21 Feb 2005 17:31:39 +0100 Received: from 241.119-84-212.ippool.ndo.com ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Feb 2005 17:31:39 +0100 Received: from david by 241.119-84-212.ippool.ndo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Feb 2005 17:31:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: Colorize command output Date: Mon, 21 Feb 2005 16:34:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241.119-84-212.ippool.ndo.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gcszu-zsh-users@m.gmane.org X-MailScanner-To: zsh-users@sunsite.dk X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 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