better support if source-highlight not installed

This commit is contained in:
Locojay 2011-06-15 12:03:49 -04:00
commit 1903a273fd

View file

@ -1,4 +1,5 @@
if [ -f `/usr/local/bin/src-hilite-lesspipe.sh`]; then
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
spath=$(which src-hilite-lesspipe.sh 2>/dev/null)
if [ $spath ]; then
export LESSOPEN="| $spath %s"
export LESS=' -R '
fi