Last Friday we had a small but pretty cool
linux event at University. There was also a presentation about
grml and when Valentin showed that the manuals on
grml are in color there were alot of people saying "wow I want that too"
grml includes this feature since version 0.1 (thanks to Matthias Kopfermann who brought this up and had the initial idea) but alot of people don't know how that works (
without using most as PAGER, most has some disadvantages over less).
So here is how it works:
$ mkdir ~/.terminfo/ && cd ~/.terminfo
Now get the terminfo description:
$ wget http://nion.modprobe.de/mostlike.txt
Now compile it using
tic (
the terminfo entry-description compiler)
$ tic mostlike.txt
(you may want to delete the mostlike.txt file after compiling)
And then just define an alias in the rc file of your favorite shell.
alias man="TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man"
That's it!
If you want to modify the terminfo file, use
infocmp mostlike to get the content of it later.