Sunday, November 08, 2020

osx terminal less source highlight

 osx terminal less source highlight 

 

  1. brew install source-highlight
    /usr/local/Cellar/source-highlight/3.1.9_3
  2. download a script and put into
    mv src-hilite-lesspipe.sh /usr/local/bin/
  3. 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'

Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home