anselm
anselm

Reputation: 852

zsh not always expanding path

If I type rpm --root=/ in ZSH and then press TAB nothing happens. This works for a lot of other commands. How can I make ZSH always expand the path like in BASH?

Upvotes: 6

Views: 779

Answers (1)

Marlon Richert
Marlon Richert

Reputation: 7040

It looks like you're still using Zsh's legacy completion system. To upgrade to the "new" completion system (released in 🛸the year 2000🛸), add this to your .zshrc file:

autoload -Uz compinit
compinit

Then you'll see that pressing Tab after rpm --root=/ will give you file completions just fine.

Upvotes: 0

Related Questions