Skip to content

Instantly share code, notes, and snippets.

@boredzo
Forked from cocoalabs/gist:2fb7dc2199b0d4bf160364b8e557eb66
Last active June 19, 2017 14:44
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save boredzo/06271944983864da495d303638351ca8 to your computer and use it in GitHub Desktop.
Save boredzo/06271944983864da495d303638351ca8 to your computer and use it in GitHub Desktop.
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_md=$'\e[1;36m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[1;40;92m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[1;32m' \
man "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment