How can I add args to the command I use as the $EDITOR
in fish shell? Specifically using the export EDITOR=...
syntax rather than the set
command.
I want to do something like export EDITOR='code --wait'
, but this doesn't work:
> $EDITOR
code --wait: command not found
$EDITOR
toexecve
and don't strip the arguments first. You could point$EDITOR
to a script that invokes your editor with the additional parameters. Also,$EDITOR
is used in the non-GUI context,$VISUAL
is used in the GUI context. You should set them both.