Advertisement
cirrus

man colour

Feb 11th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #add to .bashrc or .zshrc to give manpages some colours
  2. ------------------------------------------------------
  3.  
  4. man() {
  5. env \
  6. LESS_TERMCAP_mb=$(printf "\e[1;31m") \
  7. LESS_TERMCAP_md=$(printf "\e[1;31m") \
  8. LESS_TERMCAP_me=$(printf "\e[0m") \
  9. LESS_TERMCAP_se=$(printf "\e[0m") \
  10. LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
  11. LESS_TERMCAP_ue=$(printf "\e[0m") \
  12. LESS_TERMCAP_us=$(printf "\e[1;32m") \
  13. man "$@"
  14. }
  15.  
  16. ------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement