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

Re: AUTO_CD



On Oct 6,  4:45pm, Dave Yost wrote:
}
} Yes, but autocd goes beyond what is desired: it makes every cd into a
} pushd.

Viz:

setopt auto_cd auto_pushd
cd chdir () { setopt localoptions no_auto_pushd; builtin cd "$@" }

(One of the rare instances where defining two functions at once makes
some sort of sense.)



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