If I set the EDITOR
environment variable to emacs
in bash, running crontab -e
will open the crontab in emacs. When I set it in fish with
set -U EDITOR emacs
crontab opens with vim. What can I do to get crontab to open with emacs?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityIn fish, if you want programs to be able to see environment variables, you have to use set -x
. That is, to set the EDITOR variable, you should use
set -Ux EDITOR emacs