mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
9544316ef9
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]
|
||
---|---|---|
.. | ||
bzr.zsh | ||
clipboard.zsh | ||
compfix.zsh | ||
completion.zsh | ||
correction.zsh | ||
diagnostics.zsh | ||
directories.zsh | ||
functions.zsh | ||
git.zsh | ||
grep.zsh | ||
history.zsh | ||
key-bindings.zsh | ||
misc.zsh | ||
nvm.zsh | ||
prompt_info_functions.zsh | ||
spectrum.zsh | ||
termsupport.zsh | ||
theme-and-appearance.zsh |