diff options
| author | Anton Bobov <abobov@gmail.com> | 2013-04-16 15:53:09 +0600 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2013-04-16 15:53:09 +0600 |
| commit | 423460514aff780fbb0244f7d7ac4f60f7e83db4 (patch) | |
| tree | 7ce1b2e623cf469fc72c98fe713ddcf28836bb5d /files/.zsh | |
| parent | 2eac886c0b3458b25048e568f3b24e0693733a27 (diff) | |
Add less source highlight.
If source-highlight package installed then less will be highlight files.
Diffstat (limited to 'files/.zsh')
| -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' |
