You have to define EDITOR as environment variable.
Try
export EDITOR=$(which vi)
To persist this, add it to ~/.bashrc or ~/.bash_profile.
You have to define EDITOR as environment variable.
Try
export EDITOR=$(which vi)
To persist this, add it to ~/.bashrc or ~/.bash_profile.