I would like to color some parts of the output of the command man
, specifically I would like to be able to change the color of the most important things, for example the options or the first introduction to each command.
Is it possible?
I know I can change the color of the prompt and of the output of the command grep
and ls
, so I thought we could actually customise more things (if yes, in general, could you please show me a complete guide?).
Best Answer
Assuming you're fairly default and using bash:
Short version:
Add the following to your .bashrc file:
If you use ZSH as part of oh-my-zsh there's a plugin for man-page coloring: colored-man