Chrysostomus / manjaro-zsh-config

Zsh configuration package for manjaro
MIT License
124 stars 52 forks source link

zsh: no matches found: HEAD^ #14

Closed jeantil closed 4 years ago

jeantil commented 4 years ago

The default .zshrc file for manjaro has the following enabled

setopt extendedglob  

Because of this attempts to use the git shortcut ^ which allows to refer to the parent of a given commit (HEAD^ or ${abbreviated_commit_hash}^ ) is interpreted as an inverted file glob which doesn't match anything.

This issue was also reported against oh-my-zsh https://github.com/robbyrussell/oh-my-zsh/issues/449 and fixed by adding unsetopt nomatch which results in simply using the command as is if the pattern matching fails instead of reporting a failure.