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
zsh: no matches found: HEAD^ #449
Comments
|
Escape the |
|
Sweet. Thanks for the tip, that did it. |
|
Yea, this is a problem in zshell. You can alternatively can use HEAD~ so that you don't have to escape it each time. |
|
Actually, this problem is due to a setting in oh-my-zsh's bare bones configuration. It does not occur with plain old ZSH: $ zsh -f
ratham% echo HEAD^
HEAD^
ratham% So perhaps this issue should be reopened. |
|
So I had this problem long before I started using oh-my-zsh. Using the exact same setup as the OP (but without rvm installed): davidd@hal9000 .dotfiles % g co HEAD^ Here's zsh with simply rvm added: davidd@hal9000 .dotfiles % zsh -f |
|
Excellent find! Please report this on the RVM issue tracker as well. |
|
I dug some more and found the real culprit: # after loading RVM
$ unsetopt extendedglob
$ echo HEAD^
HEAD^ |
|
Ohhh, it looks like ^ filters out symbolic links in extendedglob. Ok, I think this working as intended then. |
|
From
|
|
For people who are searching for a solution, another way to fix this is to |
|
Awesome tip! |
|
@nickmeharry 😍 |
|
Oh yeah thanks a lot for the tip @nickmeharry it helped for other issues as well, thx ! |
ohmyzsh/ohmyzsh#449 (Thanks, jfremy)
|
Yes this line fixed the issue.. thanks |
As describe here: ohmyzsh/ohmyzsh#449 I need HEAD^ and similar to work properly
|
Shouldn't this be the default behaviour ? took me some time to find the setopt NO_NOMATCH |
|
sweet! @nickmeharry |
As describe here: ohmyzsh/ohmyzsh#449 I need HEAD^ and similar to work properly
Add `options.zsh` and use `setopt NO_NOMATCH` to pass the bad match onto the command as per ohmyzsh/ohmyzsh#449 (comment). Fixes #14
When I run this git command,
git reset --soft HEAD^I get this backzsh: no matches found: HEAD^I have these plugins in place
plugins=(brew bundler git osx rails3 ruby textmate)The text was updated successfully, but these errors were encountered: