Permalink
Switch branches/tags
Nothing to show
Find file
88c687a Nov 20, 2010
20 lines (17 sloc) 844 Bytes
# Setup some pretty colours for less.
# Unless we're using a terminal where everything just blinks.
autoload -U is-mac-terminal
if ! is-mac-terminal; then
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box (This stops hilighting from working properly.)
fi
if [[ -x `which lesspipe.sh` ]]; then
export LESS="-R -M --shift 5"
export LESSOPEN="|lesspipe.sh %s"
export LESSCOLOR=1
fi