Created
August 24, 2012 08:51
-
-
Save below/3447720 to your computer and use it in GitHub Desktop.
Make less do more in OS X Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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