-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set $EDITOR to something including arguments? #541
Comments
We were running Should be fixed here: debfc0f . Now we run
|
Thanks for reporting this |
It works, thanks! |
Alas, a new problem. If I now do Note that for example, |
Actually I'm not sure what git is doing here, as it seems to accept even quoted arguments. Presumably it either includes a simple parser for this, or it is passing the string to a shell via |
You're right...EDITOR should be exported without colons. So either it should not be an array, or it should be special cased. |
(Re-open? I can't do it.) |
fish does just eval...the problem is that fish tries to protect you from yourself by checking whether the command is valid, and falling back to its own editor if it is not. Try it now, with the new commit 5e9ca72 and no arrays, like so:
|
Yep it works, thanks again! |
Trying to configure fish for using GVim for
funced
:If I
set EDITOR gvim
, it starts in the background which doesn't work right. If Iset EDITOR gvim -f
it starts the built in interactive editor. Same thing if I doset EDITOR "gvim -f"
. If I write a function for runninggvim -f
and set EDITOR to that function, same thing.It seems the only way to do this is to write a separate shell script?
The text was updated successfully, but these errors were encountered: