fix: Check if vim is installed, default to vi if none found

This commit is contained in:
Price Hiller 2022-04-19 01:21:52 -05:00
parent 912bb440da
commit e934ed2056

View File

@ -46,9 +46,12 @@ if which nvim >/dev/null 2>&1; then
export EDITOR=nvim
export VISUAL=nvim
export MANPAGER="nvim +Man!"
else
elif which vim >/dev/null 2>&1; then
export EDITOR=vim
export VISUAL=vim
else
export EDITOR=vi
export VISUAL=less
fi
### Terminal Specific Configuration ###