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

Re: zsh AUTO_CD proposal



On Wed, Mar 16, 2005 at 01:54:43PM -0800, Dave Yost wrote:
> Personally, I would redefine this function to call a function that 
> does a pushd.

An alternative is to "setopt auto_pushd", which turns every "cd" command
into a "pushd".  Then, if you didn't want a typed "cd" command to do a
pushdir, do this:

function mycd {
  setopt local_options noautopushd
  builtin cd ${@}
}
alias cd=mycd

(That alias doesn't affect the auto_cd functionality.)

..wayne..



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