-
Notifications
You must be signed in to change notification settings - Fork 13
/
06_less
19 lines (17 loc) · 844 Bytes
/
06_less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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