Skip to content

Instantly share code, notes, and snippets.

@below
Created August 24, 2012 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save below/3447720 to your computer and use it in GitHub Desktop.
Save below/3447720 to your computer and use it in GitHub Desktop.
Make less do more in OS X Terminal
# Configure less to register the represented file with the terminal.
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
export LESS='-P?n?f'"$(printf '\e]6;%%f\a')"'%f .?m(file %i of %m) ..?e(END) ?x- Next\: %x..%t'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment