move envars to .zshenv where they belong

master
katherine 4 years ago
parent f466b5219f
commit e4ffc753ee
Signed by: ageha
GPG Key ID: 62E17859D559AEF3
  1. 7
      .zshenv
  2. 3
      .zshrc

@ -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

Loading…
Cancel
Save