aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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