colored-man.plugin.zsh 334 B

1234567891011
  1. man() {
  2. env \
  3. LESS_TERMCAP_mb=$(printf "\e[1;31m") \
  4. LESS_TERMCAP_md=$(printf "\e[1;31m") \
  5. LESS_TERMCAP_me=$(printf "\e[0m") \
  6. LESS_TERMCAP_se=$(printf "\e[0m") \
  7. LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
  8. LESS_TERMCAP_ue=$(printf "\e[0m") \
  9. LESS_TERMCAP_us=$(printf "\e[1;32m") \
  10. man "$@"
  11. }