diff options
author | katherine <ageha@airen-no-jikken.icu> | 2019-06-07 01:50:08 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2019-06-07 01:50:08 -0700 |
commit | e4ffc753ee6438399ec80be9c096f362f29ddd44 (patch) | |
tree | 0104bc14c6f274fbd600145d2d84f79a3135c656 | |
parent | f466b5219fa55235708bc4077f09c9ba8e0b0288 (diff) | |
download | dotfiles-e4ffc753ee6438399ec80be9c096f362f29ddd44.tar.gz |
move envars to .zshenv where they belong
-rw-r--r-- | .zshenv | 7 | ||||
-rw-r--r-- | .zshrc | 3 |
2 files changed, 7 insertions, 3 deletions
@@ -0,0 +1,7 @@ +export PAGER="less -R" + +if [[ ! -z $(whence nvim) ]] then + export EDITOR='nvim' +elif [[ ! -z $(whence vim) ]] then + export EDITOR='vim' +fi @@ -144,15 +144,12 @@ bindkey '^N' down-history alias :q='exit' alias less='less -R' -export PAGER="less -R" if [[ ! -z $(whence nvim) ]] then alias svim='sudo -E nvim' alias svimdiff='sudo -E nvim -d' alias vim='nvim' - export EDITOR='nvim' elif [[ ! -z $(whence vim) ]] then - export EDITOR='vim' alias svim='sudo -E vim' alias svimdiff='sudo -E vim -d' fi |