From 7bc9da718a1a9131771d2c6c28690654c0da5ba8 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 2 Nov 2013 22:02:45 +0900 Subject: [PATCH] fix src_hilite_lesspipe --- bashrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index 564853e..2b2fc3d 100755 --- a/bashrc +++ b/bashrc @@ -95,11 +95,12 @@ else fi export LESS="-iRMX" -_src_hilite_lp_path="`which src-hilite-lesspipe.sh 2>/dev/null`" -if test -n "$_src_hilite_lp_path" -then - export LESSOPEN="| $_src_hilite_lp_path %s" -fi +# _src_hilite_lp_path="`which src-hilite-lesspipe.sh 2>/dev/null`" +for f in /usr/share/source-highlight/src-hilite-lesspipe.sh +do + test -z "$_src_hilite_lp_path" && test -e "$f" && _src_hilite_lp_path="$f" +done +test -n "$_src_hilite_lp_path" && export LESSOPEN="| $_src_hilite_lp_path %s" if null type vim then