Only set ALTERNATE_EDITOR to nano if nano is in PATH
This commit is contained in:
parent
5e925e84a8
commit
ecc61cb747
|
@ -31,12 +31,12 @@ elif command -v emacs > /dev/null; then
|
|||
VISUAL="$(command -v emacs)"
|
||||
elif command -v nano > /dev/null; then
|
||||
VISUAL="$(command -v nano)"
|
||||
export ALTERNATE_EDITOR="$(command -v nano)"
|
||||
elif command -v vim > /dev/null; then
|
||||
VISUAL="$(command -v vim)"
|
||||
fi
|
||||
export VISUAL
|
||||
export EDITOR="${VISUAL}"
|
||||
export ALTERNATE_EDITOR="$(command -v nano)"
|
||||
|
||||
############################# Plugins ##########################################
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user