Enable syntax highlighting in less, and update less too

This commit is contained in:
2018-02-07 10:33:25 +00:00
parent 1a644f08d9
commit 8b34106929
3 changed files with 14 additions and 0 deletions

11
shell/less.sh Normal file
View File

@@ -0,0 +1,11 @@
#
# less setup
#
alias le="less"
# Enable syntax highlighting via source-highlight
if command -v src-hilite-lesspipe.sh > /dev/null; then
export LESSOPEN="| src-hilite-lesspipe.sh %s"
export LESS=" -R "
fi