Can you create another entry in the first table "Grammar" for fish, row "simple command with environment variable"? env EDITOR=vi git commit is indeed correct, but there is another way that will work with fish functions as well, whereas env expects a real command. The other option is:
Can you create another entry in the first table "Grammar" for fish, row "simple command with environment variable"?
env EDITOR=vi git commit
is indeed correct, but there is another way that will work with fish functions as well, whereasenv
expects a real command. The other option is:This is actually the equivalent in fish using fish grammar and syntax. The env command method works for all shells. See https://github.com/fish-shell/fish-shell/issues/2415 for a discussion.