less.sh 402 B

1234567891011
  1. # Default Flags for `less`
  2. # e = quit at end of file
  3. # i = searches ignore case, unless there are upper case characters
  4. # r = display raw control characters (Ctrl-A is ^A)
  5. # M = verbose `less` prompt
  6. # X = disable termcap init/deinit strings - sometimes these clear the screen.
  7. export LESS='-iRMX'
  8. if srchilitepath=$(command -v src-hilite-lesspipe.sh); then
  9. export LESSOPEN="| $srchilitepath %s"
  10. fi