diff options
author | Derek Frank <defrank@users.noreply.github.com> | 2016-11-15 15:38:32 -0800 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-11-16 00:38:32 +0100 |
commit | 3ed37f47cb1a9385e2238528839d7d91634f2c5b (patch) | |
tree | 606e129c047f17d31443d6fccc890bbf2472a912 /lib | |
parent | 62b0abdb6e4bedc0c28f97176bd76f74859d82ea (diff) | |
download | zsh-3ed37f47cb1a9385e2238528839d7d91634f2c5b.tar.gz zsh-3ed37f47cb1a9385e2238528839d7d91634f2c5b.tar.bz2 zsh-3ed37f47cb1a9385e2238528839d7d91634f2c5b.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/misc.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh index c81dab413..3052b7710 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -19,8 +19,8 @@ fi setopt long_list_jobs ## pager -export PAGER="less" -export LESS="-R" +env_default PAGER 'less' +env_default LESS '-R' ## super user alias alias _='sudo' |