zshboweroh-my-zshprezto

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


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?


Solution

  • # 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.