Browse Source

Enable syntax higliighting in less(1)

Alois Mahdal 7 years ago
parent
commit
0a3f317d8f
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      dotfiles/bash/main.bashrc

+ 2
- 0
dotfiles/bash/main.bashrc View File

405
 
405
 
406
 export LC_COLLATE=C     # make sort upper first
406
 export LC_COLLATE=C     # make sort upper first
407
 export EDITOR=vim
407
 export EDITOR=vim
408
+export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
409
+export LESS=' -R '
408
 
410
 
409
 export PRETTY=color
411
 export PRETTY=color
410
 export PRETTY_DEBUG_EXCLUDE=inigrep
412
 export PRETTY_DEBUG_EXCLUDE=inigrep