vinstaller/files/bash/editor.sh

14 lines
218 B
Bash
Raw Normal View History

2022-02-08 20:41:09 +01:00
if command -v nano > /dev/null; then
e=nano
elif command -v nvim > /dev/null; then
e=nvim
elif command -v vim > /dev/null; then
e=vim
fi
export EDITOR="${e}"
export VISUAL="${e}"
export SUDO_EDITOR="${e}"
unset e