1. Install most, most and pager are similar, is a text viewing tool, but it supports color.
Code:
sudo aptitude Install most
2. Configure most
Code:
Cat > ~/.mostrc << "EOF"
% Color Settings
Color Normal Lightgray Black
Color Status Yellow Blue
Color Underline yellow Black
Color Overstrike Brightblue Black
% Less-like KeyBindings
Unsetkey "^k"
Unsetkey "G"
Unsetkey "G"
Unsetkey ":"
Setkey Next_file ": N"
Setkey find_file ": E"
Setkey next_file ":p"
Setkey toggle_options ": o"
Setkey toggle_case ": C"
Setkey delete_file ":d"
Setkey exit ": Q"
Setkey Bob "G"
Setkey eob "G"
Setkey down "E"
Setkey Down "E"
Setkey Down "J"
Setkey Down "^n"
Setkey up "Y"
Setkey up "^y"
Setkey up "K"
Setkey up "^p"
Setkey up "^k"
Setkey Page_down "F"
Setkey Page_down "^f"
Setkey page_up "B"
Setkey page_up "^b"
Setkey Other_window "Z"
Setkey Other_window "W"
Setkey search_backward "?"
Setkey Bob "P"
Setkey Goto_mark "'"
Setkey find_file "E"
Setkey Edit "V"
EOF
Code:
Cat >> ~/.BASHRC << "EOF"
Export pager= '/usr/bin/most-s '
Export browser= '/usr/bin/most-s '
EOF
Code:
SOURCE ~/.BASHRC
. Try the colored man.