osx terminal less source highlight
osx terminal less source highlight
- brew install source-highlight
/usr/local/Cellar/source-highlight/3.1.9_3
- download a script and put into
mv src-hilite-lesspipe.sh /usr/local/bin/ - add to .bashrc
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s" export LESS=" -R "
alias less='less -m -N -g -i -J --underline-special --SILENT'