I can’t get Mercurial (hg) to use pico as my EDITOR when I’m using fish shell.
I’ve tried using this and other variations, but nothing seems to help:
set -U EDITOR pico
hg commit will always open vi as the editor, and I do not want that.
UPDATE: Adding setenv EDITOR pico to the file ~/.config/fish/config.fish did what I wanted.
VISUALset? – u1686_grawity Jun 08 '12 at 09:02setenvworked for me too when trying to set$BUNDLER_EDITOR– Milovan Zogovic Sep 28 '12 at 13:22setenvis just a compatibility alias forset -gx. In the long wrong you'll be better off avoiding the use of such shims and doing things "the fish way"; e.g.,set -gx EDITOR pico. – Kurtis Rader Jun 22 '16 at 14:32