Shell colours

From Jon's Wiki
Revision as of 00:11, 29 April 2016 by Johnno (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use vimpager.

git clone git://github.com/rkitover/vimpager
cd vimpager
sudo make install-deb

Stick this in ~/.bashrc

export PAGER='/usr/bin/vimpager'
export LESS=" -R "
export LESSOPEN="| $PAGER -o - %s"

alias less=$PAGER
alias zless=$PAGER
alias cat='/usr/bin/vimcat'