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?

1 Answer 1

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
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .