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?
to your account
If I try to create the following abbreviation through the web interface, the (git_branch_name) part is stripped away:
abbr -a ggl 'git pull origin (git_branch_name)'
'git pull origin (git_branch_name)'
'git pull origin'
The text was updated successfully, but these errors were encountered:
Weird, I can't reproduce! What is your test environment?
Sorry, something went wrong.
Yes, this works for me on 22811eb with Chrome 76 on macOS 10.13.6.
Okay, I can reproduce with 3.0.2, the trick is to include the single-quotes - which seems like the correct thing to do, because that's how the others are presented on the web interface.
Can reproduce with master. This is because fish_config runs abbr --add 'ggl' ''git pull origin (git_branch_name)'' because it doesn't escape the input.
abbr --add 'ggl' ''git pull origin (git_branch_name)''
(note: You need to reload the tab to see the real result)
Okay I just pushed 70fc261, which ends up ignoring all ' surrounding the input.
No branches or pull requests