Re: [PATCH v3] completion: ignore chpwd_functions when cding on zsh
- From
Øystein Walle <oystwa@gmail.com>
- Date
- Oct 9, 2014, 19:21 UTC
- Message-ID
- <loom.20141009T211723-95@post.gmane.org>
- In-Reply-To
- <xmqqlhop6rmj.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster <at> pobox.com> writes:
Show 18 quoted lines
> > Øystein Walle <oystwa <at> gmail.com> writes: > > > Brandon Turner <bt <at> brandonturner.net> writes: > > > >> > >> Software, such as RVM (ruby version manager), may set chpwd functions > >> that result in an endless loop when cding. chpwd functions should be > >> ignored. > > > > Now that it has moved to the zsh-specific script you can achieve this more > > simply by using cd -q. > > > > Is the way we defeat CDPATH for POSIX shells sufficient, or does it > also need to be customized for zsh? >
That is fine (to the best of my knowledge). If the current directory is not part of CDPATH at all then Zsh will try the current directory first, so if anything Zsh should fail more seldom here than others (but not *never*, so the hack is still needed).
Øsse