nqckeq
Last Updated: February 25, 2016
·
1.727K
· murphyrandle
621103 10151814410385600 1552271139 o

ZSH, Bower, and command not found

Trying to install a Bower package set at a certain version, branch, or commit hash on ZSH was giving me the following error:

> bower install --save murphyrandle/foobar#some-branch
zsh: no matches found: murphyrandle/foobar#some-branch

It's because ZSH is trying to do some fancy glob magic. Remedy this by adding:

alias bower='noglob bower'

to your ~/.zshrc file.

Say Thanks
Respond

2 Responses
Add your response

12145
3eae340e049abecfb4a117ad7a907bd1

There is the same issue with *, but you can escape them by wrapping the token with a " pair.

Try this one:

bower install --save "murphyrandle/foobar#some-branch"

Your overall rule is a nice alternative too but may be hard to put in place for development binaries that you want to test with gtest for instance (where * suffer from the same issue with zsh):

./MyCustomDevBinary "--gtest_filter=Foo.*"
over 1 year ago ·
12164
621103 10151814410385600 1552271139 o

Great point, @opatry. Thanks for posting that helpful comment!

over 1 year ago ·