]> arthur.barton.de Git - ax-zsh.git/commitdiff
less: Set up color usage
authorAlexander Barton <alex@barton.de>
Sat, 22 Aug 2015 12:48:14 +0000 (14:48 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 22 Aug 2015 12:48:14 +0000 (14:48 +0200)
default_plugins/less/less.zprofile

index 95fe642d70062363255bba9bec77ae9651365a46..f651611379adcc3ed11d9a197bd13a3c3848dec4 100644 (file)
@@ -6,4 +6,13 @@
 
 export LESS="-FmRX"
 
+# Support colors in less
+export LESS_TERMCAP_mb=$'\E[01;31m'
+export LESS_TERMCAP_md=$'\E[01;31m'
+export LESS_TERMCAP_me=$'\E[0m'
+export LESS_TERMCAP_se=$'\E[0m'
+export LESS_TERMCAP_so=$'\E[01;44;33m'
+export LESS_TERMCAP_ue=$'\E[0m'
+export LESS_TERMCAP_us=$'\E[01;32m'
+
 (( $+commands[lesspipe] )) && eval $(lesspipe)