Better bash man pages
We, developers, live much of our time within a shell. Modern CLIs output stunning help in a way before was not possibile. Think of NPM or Heroku or the great GIT.
However we still have the man pages with their default style: black&white with some underline or bold.
So, we can change this luckly. It’s a feature, probably an ancient one, most of us don’t know or just forget about it.
How to do that:
- create a file called .LESS_TERMCAP:
- edit the ~/.LESS_TERMCAP file with an editor:
- fill ~/.LESS_TERMCAP with this:
- open your ~/.bash_profile with an editor:
- add to ~/.bash_profile this:
- reload the ~/.bash_profile (or restart the bash session):
Now you have colorized the man pages. It’s possible also to customize the colors, if you google a bit you’ll find the table of colors and the meaning of those variables.