diff options
Diffstat (limited to 'files/.zsh/rc/S20_environment')
| -rw-r--r-- | files/.zsh/rc/S20_environment | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/files/.zsh/rc/S20_environment b/files/.zsh/rc/S20_environment index 8f58c64..d265399 100644 --- a/files/.zsh/rc/S20_environment +++ b/files/.zsh/rc/S20_environment @@ -13,6 +13,11 @@ export MANWIDTH=80 export EDITOR=vim export VISUAL=vim export LESS=FRSX +if [ -f "/usr/share/source-highlight/src-hilite-lesspipe.sh" ] ; then + export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" +elif [ -f "/usr/bin/src-hilite-lesspipe.sh" ] ; then + export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" +fi # this make man pages look nicer export LESS_TERMCAP_mb=$'\E[01;31m' |
