Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zstyle cd ignore-parents broken? (Zsh-5.0.5)



Hi,

I either found a minor bug or my capacity to screw my shell configuration
was boosted.

[...]

I had this zstyle in place for years, today I noticed cd does not ignore
the parent dir anymore.

On Zsh-5.0.5, completing on "mv foo ../[TAB]" parent dir is ignored as
expected. If I try "cd ../[TAB]" completion list includes the parent dir.

On Zsh 4.3.17, it works as expected (i.e. parent dir is ignored by both mv
and cd).

zsh -f

 autoload -U compinit
compinit
zstyle ':completion:*:cd:*' ignore-parents parent pwd
zstyle ':completion:*:mv:*' ignore-parents parent pwd
mv foo ../[TAB] # works as expected on both 5.0.5 and 4.3.17
cd ../[TAB]     # works as expected only on 4.3.17

Kind regards, (and thanks for Zsh!)
-- 
Francisco


Messages sorted by: Reverse Date, Date, Thread, Author