Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save curtisz/96c8bde8a80ee1ca8abda3f6261433af to your computer and use it in GitHub Desktop.
Save curtisz/96c8bde8a80ee1ca8abda3f6261433af to your computer and use it in GitHub Desktop.
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment