From: Øystein Walle Date: Thu, 09 Oct 2014 19:21:59 GMT Subject: Re: [PATCH v3] completion: ignore chpwd_functions when cding on zsh Message-ID: In-Reply-To: Junio C Hamano pobox.com> writes: > > Øystein Walle gmail.com> writes: > > > Brandon Turner 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