2

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?

4

In 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.