Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 674
raulricardo21 Avatar asked Dec 08 '22 13:12

raulricardo21


1 Answers

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

like image 178
Sindre Sorhus Avatar answered Jan 19 '23 01:01

Sindre Sorhus