mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 04:10:09 +00:00
fix(env): Do not override misc env set before sourcing oh-my-zsh (#5231)
Sourcing oh-my-zsh happens in zshrc, which will override settings of profile and zshenv. Treat misc values, `PAGER` and `LESS`, as default settings without overriding existing values. Fixes: #1, robbyrussell/oh-my-zsh#3016
This commit is contained in:
parent
62b0abdb6e
commit
3ed37f47cb
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ fi
|
||||||
setopt long_list_jobs
|
setopt long_list_jobs
|
||||||
|
|
||||||
## pager
|
## pager
|
||||||
export PAGER="less"
|
env_default PAGER 'less'
|
||||||
export LESS="-R"
|
env_default LESS '-R'
|
||||||
|
|
||||||
## super user alias
|
## super user alias
|
||||||
alias _='sudo'
|
alias _='sudo'
|
||||||
|
|
Loading…
Reference in a new issue