From 8aa5491c364d5921c94b095065b00bee7e350cae Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 16 Jan 2013 17:25:05 +0900 Subject: [PATCH] use src-hilite if available for less --- bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bashrc b/bashrc index 3ec50ba..f34c905 100755 --- a/bashrc +++ b/bashrc @@ -46,6 +46,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 + if null type vim then export EDITOR=vim