My wife was unimpressed by Vim
My wife was unimpressed by Vim
export EDITOR=nano.
But (neo)vim is amazing so there is no need to do that.
Based nano user
From my .zshrc (typing this on mobile so cope if it’s wrong)
case “$OSTYPE” in linux*) export EDITOR=nano ;; freebsd*) export EDITOR=ee ;;
I guess shell languages can’t do this:
export EDITOR=case "$OSTYPE" in linux*) nano ;; freebsd*) ee ;;