diff --git a/.bashrc.d/11-env.bash b/.bashrc.d/11-env.bash index a8ce950..bc8f325 100644 --- a/.bashrc.d/11-env.bash +++ b/.bashrc.d/11-env.bash @@ -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