Use a more robust method for checking for vim's presence
This commit is contained in:
parent
b10410c20b
commit
c563477f3e
|
@ -2,7 +2,7 @@
|
|||
HISTCONTROL=ignoreboth
|
||||
|
||||
# Prefer vim, but if it's not installed, nano will do
|
||||
if [[ -s /usr/bin/vim ]]; then
|
||||
if which vim 1>&- 2>&- ; then
|
||||
export EDITOR=vim
|
||||
else
|
||||
export EDITOR=nano
|
||||
|
|
Loading…
Reference in New Issue