Skip to content

Instantly share code, notes, and snippets.

@adam000
Forked from boredzo/colorman.zsh
Last active August 16, 2016 17:38
Show Gist options
  • Save adam000/0316f916c875f42f8035e80492b4093a to your computer and use it in GitHub Desktop.
Save adam000/0316f916c875f42f8035e80492b4093a to your computer and use it in GitHub Desktop.
Color Terminal for bash/zsh etc.. (my own colorscheme)
# Even easier than making a function and subshells and all of that, just set the values in your RC! Other things that use
# TERMCAP can now take advantage of these values.
export LESS_TERMCAP_md=$'\e[1;31m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[1;36m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[4;32m'
man() {
env \
LESS_TERMCAP_md=$'\e[1;31m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[1;36m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[4;32m' \
man "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment