diff --git a/autoenv/autoenv.zsh b/autoenv/autoenv.zsh index 4e87b83..34caf74 100644 --- a/autoenv/autoenv.zsh +++ b/autoenv/autoenv.zsh @@ -49,7 +49,7 @@ commands: if which vim &> /dev/null; then # Exit the autoenv before editing. _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. [ -f $PWD/.enter ] && _autoenv_authorized $PWD/.enter yes # If exit script exists, authorize it.