Browse Source

Enable syntax higliighting in less(1)

Alois Mahdal 6 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,6 +405,8 @@ mkdir -p "$RV_TMP"
405 405
 
406 406
 export LC_COLLATE=C     # make sort upper first
407 407
 export EDITOR=vim
408
+export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
409
+export LESS=' -R '
408 410
 
409 411
 export PRETTY=color
410 412
 export PRETTY_DEBUG_EXCLUDE=inigrep