Loading
Home ›
Tech Tip: Color man Pages
Jul 02, 2009 By Jose Filipe Lop...
in
To add a bit of color to your man pages install the most pager. For most DEB based distros:
$ sudo apt-get install most
For most RPM based distros:
$ yum install most
Failing these, get the source here.
Now set the pager used by man and try running man:
$ export MANPAGER="/usr/bin/most -s # or export MANPAGER="/usr/local/bin/most -s" $ man bash
Add the setting of MANPAGER to your shell ~/.profile to make the setting available when you login.
| Attachment | Size |
|---|---|
| color-manpages.jpg | 141.53 KB |
______________________
Trending Topics
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
| Razor-qt 0.4 - Qt based Desktop Environment | Jan 30, 2012 |
- Search
3 hours 46 sec ago - Question
3 hours 24 min ago - for the record
3 hours 26 min ago - That's disappointing. Thanks
5 hours 49 min ago - Well spotted. I've corrected
7 hours 18 min ago - This is a great program. We
10 hours 18 min ago - No Air for Linux
12 hours 8 min ago - HEWLETT PACKARD created
12 hours 18 min ago - HEWLETT PACKARD created
12 hours 21 min ago - very helpful :)
12 hours 42 min ago





Comments
An Alternative for Ubuntu
In terminal
Install most
:~$sudo apt-get install most
Let most format your man pages.
:~$ sudo update-alternatives --config pager
In the menu, select number corresponding to most(on mine its 5) and hit enter. Enjoy.
Less color for man pages
Less is much more powerful than most.
See how to get colored man pages with less here:
http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
or...
add the following to .Xdefaults
*VT100*colorULMode: on
*VT100*colorUL: MAGENTA
*VT100*underLine: off
*VT100*colorBDMode: on
*VT100*colorBD: GREEN
Then merge
xrdb -merge .Xdefaults