1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # less.zprofile: Setup less
4 # Make sure that "less(1)" is installed
5 (( $+commands[less] )) || return
9 # Support colors in less
10 export LESS_TERMCAP_mb=$'\E[01;31m'
11 export LESS_TERMCAP_md=$'\E[01;31m'
12 export LESS_TERMCAP_me=$'\E[0m'
13 export LESS_TERMCAP_se=$'\E[0m'
14 export LESS_TERMCAP_so=$'\E[01;44;33m'
15 export LESS_TERMCAP_ue=$'\E[0m'
16 export LESS_TERMCAP_us=$'\E[01;32m'
18 if (( $+commands[lesspipe] )); then
20 elif (( $+commands[lesspipe.sh] )); then
21 # Silence lesspipe(1), see <https://github.com/wofr06/lesspipe/issues/21>