aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2019-06-07 01:50:08 -0700
committerkatherine <ageha@airen-no-jikken.icu>2019-06-07 01:50:08 -0700
commite4ffc753ee6438399ec80be9c096f362f29ddd44 (patch)
tree0104bc14c6f274fbd600145d2d84f79a3135c656
parentf466b5219fa55235708bc4077f09c9ba8e0b0288 (diff)
downloaddotfiles-e4ffc753ee6438399ec80be9c096f362f29ddd44.tar.gz
move envars to .zshenv where they belong
-rw-r--r--.zshenv7
-rw-r--r--.zshrc3
2 files changed, 7 insertions, 3 deletions
diff --git a/.zshenv b/.zshenv
new file mode 100644
index 0000000..50c385f
--- /dev/null
+++ b/.zshenv
@@ -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
diff --git a/.zshrc b/.zshrc
index 903185d..d8e38c4 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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