Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

zsh: sequence of options matter.

I have been suggested that zsh is the ultimate shell that is ever needed. So I gave it a shot for months. At first, I was quite impressed of it’s completion on make targets, until I encountered two commands: rpm and yum, which were painfully slow.

I was looking for the script/hack/template that can speed up the rpm completion, but no prevail. I also wonder why nobody bother to fix it.

Today, I was going to give up zsh and turn to bash+ bash-completion, as that combination actually fit surprising good to my working style (but I still miss tcsh-like completion). Suddenly, I realize that sequence of options might be the key. So I try to use

rpm -ivh

instead of

rpm -hiv

which I always use.

And ta-da, it works.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: