1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-25 13:51:57 +00:00
ohmyzsh/lib
Lars Schneider 9544316ef9 add -F and -X to default $LESS environment variable (#6611)
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-07-24 22:55:48 +02: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 Give more helpful message and disable purge of caches 2018-05-26 21:33:24 +02:00
completion.zsh Allow completion of dot directories (#6803) 2018-05-07 18:15:01 +02:00
correction.zsh Don't correct cp commands (#4636) 2018-07-01 22:43:45 +02:00
diagnostics.zsh diagnostics: fix for reserved-word changes in zsh 5.1 2015-10-08 22:31:39 -04:00
directories.zsh Remove po alias 2018-05-25 23:46:18 -04:00
functions.zsh Enable passing multiple directories to take (#6900) 2018-07-02 17:05:24 +02:00
git.zsh Fix git_commits_{ahead,before} when no upstream branch is defined (#6658) 2018-04-15 18:44:48 +02:00
grep.zsh Correct repo dir 2015-09-23 18:47:09 -04:00
history.zsh Add support for custom timestamp format in history (#6770) 2018-07-13 13:14:15 +02: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 (#6611) 2018-07-24 22:55:48 +02: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