Don't check for vim when using $EDITOR

This commit is contained in:
Kenneth Benzie 2023-06-17 15:15:00 +01:00
parent ad5dc95e4d
commit e30f86800d

View File

@ -46,8 +46,6 @@ commands:
if ! [ -f $PWD/.enter ] || ! [ -f $PWD/.exit ]; then
echo '.enter or .exit not found'; return 1
fi
# If vim exists, edit enter and exit scripts.
if which vim &> /dev/null; then
# Exit the autoenv before editing.
_autoenv_exit $PWD
if $EDITOR -p $PWD/.enter $PWD/.exit; then
@ -58,9 +56,6 @@ commands:
fi
# Enter the autoenv.
_autoenv_enter $PWD
else
echo 'vim not found'; return 1
fi
;;
deinit) # Remove .enter and .exit scripts in current directory.