aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S20_environment
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2016-08-20 23:44:55 +0500
committerAnton Bobov <abobov@gmail.com>2016-08-23 08:45:21 +0500
commitd73894fc1ab71a441080b860c2d101b9fbfb3992 (patch)
tree8898056665a8ecbe7c8cc98dedac4bc5630956ee /files/.zsh/rc/S20_environment
parent54f121265ece225dfd8e069af1a44878c01730c2 (diff)
[zhs] Alias and LESS filter.
* add LESS file filter * don't use grc if not installed * fix aliases with sudo and watch * source fzf (https://github.com/junegunn/fzf) if found
Diffstat (limited to 'files/.zsh/rc/S20_environment')
-rw-r--r--files/.zsh/rc/S20_environment4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/.zsh/rc/S20_environment b/files/.zsh/rc/S20_environment
index 02cf5fe..ebabb5f 100644
--- a/files/.zsh/rc/S20_environment
+++ b/files/.zsh/rc/S20_environment
@@ -18,7 +18,9 @@ export MANWIDTH=80
export EDITOR=vim
export VISUAL=vim
export LESS=FRSX
-if [ -f "/usr/share/source-highlight/src-hilite-lesspipe.sh" ] ; then
+if [ -f "$HOME/.lessfilter.sh" ] ; then
+ export LESSOPEN="| $HOME/.lessfilter.sh %s"
+elif [ -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"