Use $EDITOR rather the vim directory

This commit is contained in:
Kenneth Benzie 2022-03-31 22:13:26 +01:00
parent b349befbf4
commit 8790bc0c4e

View File

@ -49,7 +49,7 @@ commands:
if which vim &> /dev/null; then if which vim &> /dev/null; then
# Exit the autoenv before editing. # Exit the autoenv before editing.
_autoenv_exit $PWD _autoenv_exit $PWD
if vim -p $PWD/.enter $PWD/.exit; then if $EDITOR -p $PWD/.enter $PWD/.exit; then
# If enter script exists, authorize it. # If enter script exists, authorize it.
[ -f $PWD/.enter ] && _autoenv_authorized $PWD/.enter yes [ -f $PWD/.enter ] && _autoenv_authorized $PWD/.enter yes
# If exit script exists, authorize it. # If exit script exists, authorize it.