From e4ffc753ee6438399ec80be9c096f362f29ddd44 Mon Sep 17 00:00:00 2001 From: katherine Date: Fri, 7 Jun 2019 01:50:08 -0700 Subject: move envars to .zshenv where they belong --- .zshenv | 7 +++++++ .zshrc | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .zshenv 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 -- cgit v1.2.3