25 Jul 2009 jarod   » (Journeyer)

Usando $PAGER no bzr e no mercurial

No git, quando a saída de um comando é muito grande para caber na tela de um terminal, ele é passado pelo comando definido em $PAGER (normalmente, o less).

Para fazer a mesma coisa com o bazaar, faça o seguinte:

mkdir -p ~/.bazaar/plugins && \
cd ~/.bazaar/plugins && \
bzr branch lp:bzr-pager pager

O mercurial já tem uma extensão pager built-in, ela apenas não vem habilitada. Para habilitá-la, edite o seu $HOME/.hgrc e adicione:

[extensions]
hgext.pager =

[pager]
pager = LESS='FSRX' less

A dica do bzr foi retirada de http://daniel.hahler.de/bzr-pager-plugin (Estou usando o bzr por conta do whissip)

 

Syndicated 2009-07-25 15:51:22 (Updated 2009-07-25 16:29:17) from devlog

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!