Browse Source

use src-hilite if available for less

pull/1/head
10sr 12 years ago
parent
commit
8aa5491c36
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      bashrc

+ 6
- 0
bashrc View File

@@ -46,6 +46,12 @@ else
fi fi
export LESS="-iRMX" 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 if null type vim
then then
export EDITOR=vim export EDITOR=vim


Loading…
Cancel
Save