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
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
# Prefer vim, but if it's not installed, nano will do
|
# 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
|
export EDITOR=vim
|
||||||
else
|
else
|
||||||
export EDITOR=nano
|
export EDITOR=nano
|
||||||
|
|
Loading…
Reference in New Issue