Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    The alias 'lessh' doesn't work for me. Running bash on osx. Sigh. Commented Oct 17, 2014 at 17:09
  • That is an entirely different issue, most likely due to OSX using different shell and environment options, which may affect the interpretation of single and double quotes, differently. You can check and set these with shopt -p and set. Commented Mar 20, 2015 at 0:24
  • 6
    This worked for me on OSX: first I installed with: brew install source-highlight, then I added an alias: alias lessh='LESSOPEN="| src-hilite-lesspipe.sh %s" less -R ' Commented Aug 23, 2018 at 12:35
  • Remember source ~/.bashrc after specifying the correct alias, else you may end up with unix.stackexchange.com/questions/792028/… Commented Mar 6 at 8:00