Configuration files

zsh: select `$EDITOR` based on what's available on the system

Changed files
+8 -1
+8 -1
.zshrc
··· 45 45 fi 46 46 47 47 export GPG_TTY=$(tty) 48 - export EDITOR='emacs -nw' 49 48 export MANPAGER="sh -c 'col -xbf | bat -p -l man'" 49 + 50 + if [ -x "$(which nvim)" ]; then 51 + export EDITOR='nvim' 52 + elif [ -x "$(which vim)" ]; then 53 + export EDITOR='vim' 54 + else 55 + export EDITOR='vi' 56 + fi 50 57 51 58 # git 52 59 alias gs="git status"