Skip to content

Instantly share code, notes, and snippets.

@ryenus
Forked from boredzo/colorman.zsh
Last active September 2, 2016 08:31
Show Gist options
  • Save ryenus/324ac16b94e3822c93608159be63e6a5 to your computer and use it in GitHub Desktop.
Save ryenus/324ac16b94e3822c93608159be63e6a5 to your computer and use it in GitHub Desktop.
Color Terminal for bash/zsh etc..
# put into ~/.bashrc, or whereever fit
export LESS_TERMCAP_md=$'\e[1;36m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[1;41m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;32m'
man() {
env \
LESS_TERMCAP_md=$'\e[1;36m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[1;41m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[1;32m' \
man "$@"
}
@ryenus
Copy link
Author

ryenus commented Aug 19, 2016

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment