Why do I have to alias bower when I use zsh with oh-my-zsh

1.4k views Asked by At

On bower.io there is a warning that says:

Warning

On prezto or oh-my-zsh, do not forget to alias bower='noglob bower' or bower install jquery#1.9.1

I didn't see this before and I'm already working in a project where I have to use bower install, and everything looks normal so far.

I'm pretty curious about it, why is that, should I worry?

1

There are 1 answers

1
Sindre Sorhus On BEST ANSWER

# is used for pattern removal in zsh (see the "Standard forms: pattern removal" section).

Either alias it with noglob or quote 'jquery#1.9.1' every time.