ohmyzsh/lib
Lars Schneider 17a3e20104
add -F and -X to default $LESS environment variable
The option '-F' causes 'less' to automatically quit if the contents fit 
the screen and the option '-X' causes 'less' to not clear the screen after 
quit. I think both options are generally useful for terminal applications.

They are in particular useful for Git as it runs all output through a
pager. Git will run 'less' with '-FRX' by default if the environment 
variable $LESS is not defined [1]. Since oh-my-zsh used to set $LESS to 
'-R', Git would not override this setting. Consequently, Git would 
display even a single line of output in a pager and the user would need
to explicitly quit that pager (see mailing list discussion [2]).

Therefore, lets change the oh-my-zsh default value for $LESS to '-FRX'.
This would be useful for oh-my-zsh Git users and likely for users of
other applications that use 'less' too.

[1] 36438dc19d/Documentation/config.txt (L819-L821)
[2] https://public-inbox.org/git/2412A603-4382-4AF5-97D0-D16D5FAAFE28@eluvio.com/
2018-02-08 13:28:15 +01:00
..
bzr.zsh Modification to the frisk theme to work with the BZR lib 2013-11-06 20:10:59 -02:00
clipboard.zsh Use $+commands to check the existence of a command in clipboard.zsh. (#5519) 2016-10-10 23:01:37 +02:00
compfix.zsh Insecure completion handler added. 2015-07-11 01:52:04 -04:00
completion.zsh 'lib/completion.zsh: Solve typos' 2016-12-30 10:34:16 -02:00
correction.zsh Ordering nocorrect aliases alphabetically 2014-05-24 20:07:06 +02:00
diagnostics.zsh diagnostics: fix for reserved-word changes in zsh 5.1 2015-10-08 22:31:39 -04:00
directories.zsh Add back the - alias to go to the previous directory 2015-12-13 20:36:31 +01:00
functions.zsh 'lib/functions.zsh: Solve typos' 2016-12-30 10:34:16 -02:00
git.zsh Add match for MM (result of git commit -p on a single changed file) to git_prompt_status (#3632) 2018-01-22 19:14:05 -08:00
grep.zsh Correct repo dir 2015-09-23 18:47:09 -04:00
history.zsh Refactors history alias and moves it. 2015-02-10 19:22:39 +01:00
key-bindings.zsh Better research history with arrow keys 2015-12-14 01:08:55 +01:00
misc.zsh add -F and -X to default $LESS environment variable 2018-02-08 13:28:15 +01:00
nvm.zsh nvm plugin improvements (#5265) 2016-08-07 19:36:44 +02:00
prompt_info_functions.zsh No need to eval in rvm_prompt_info! 2014-01-07 19:08:20 +01:00
spectrum.zsh Merge pull request #3966 from apjanke/fix-spectrum-ls 2015-12-13 21:39:13 +01:00
termsupport.zsh Fix indentation 2015-12-14 13:05:51 +02:00
theme-and-appearance.zsh Fix #5604: No DIR ( directory ) colors (#5605) 2016-11-03 14:10:08 +01:00