General usage questions

Colin D Bennett colin at gibibit.com
Mon May 19 18:29:45 BST 2008


On Sat, 10 May 2008 11:48:21 +1000
Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:

> John Arbash Meinel <john at arbash-meinel.com> writes:
> 
> > Russ Brown wrote:
> > > Is there a way to configure bzr diff to always pipe its output
> > > through colordiff? Some way to get it to pipe that through less
> > > (git-style) would be nice too.
> > 
> > I don't know about pager options. Though I think there was a 'less
> > log' plugin, or something along those lines.
> 
> 'less' accepts a '-r' option, allowing raw bytes to be sent to the
> terminal, which means the colour commands will make it through
> unchanged.

Another option that I use often is to pipe through the 'vimpager'
program provided by Vim which colorizes and allows paging all at once:
  
   $ bzr diff | vimpager



More information about the bazaar mailing list