Skip to content

.:.adaeon.net — remnants of confabulation

  • Entertainment
  • Food
  • Society
  • Technology

Syntax highlighting in less on osx

2017-02-13developmentOSXterminal

To get lovely syntax highlighting in the OSX terminal (for seeing the output of ‘less’ nicely):

$ brew install source-highlight 

Add these your .profile or appropriate dotfile (.bash_profile, .zshrc)

LESSPIPE=`which src-hilite-lesspipe.sh`

export LESSOPEN="| ${LESSPIPE} %s"

export LESS='-R'

 

Source: Syntax highlighting in less on osx | Putting the fun into Funkworks

Possibly Related Posts

Post navigation

Class Central • Discover Free Online Courses & MOOCs
How to Use iPhone Magnifier Camera

.:.

  • About
  • Archives
  • Contact
  • Instagram