Ver Fonte

Move less options into `less.sh`

Weiyi Lou há 9 anos atrás
pai
commit
4b9ae8bfce
2 ficheiros alterados com 8 adições e 8 exclusões
  1. 8 0
      shell/common/less.sh
  2. 0 8
      shell/env

+ 8 - 0
shell/common/less.sh

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

+ 0 - 8
shell/env

@@ -2,14 +2,6 @@
 export EDITOR='vim'
 export PAGER='less'
 
-# Default Flags for `less`
-# e = quit at end of file
-# i = searches ignore case, unless there are upper case characters
-# r = display raw control characters (Ctrl-A is ^A)
-# M = verbose `less` prompt
-# X = disable termcap init/deinit strings - sometimes these clear the screen.
-export LESS='-iRMX'
-
 # Paths
 export PATH=$HOME/dotfiles/bin:$PATH
 export MANPATH=$MANPATH:$HOME/dotfiles/shell/man