Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh AUTO_CD proposal
- X-seq: zsh-workers 20986
- From: Dave Yost <Dave@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: zsh AUTO_CD proposal
- Date: Wed, 16 Mar 2005 13:54:43 -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Title: zsh AUTO_CD proposal
The definition of
setopt AUTO_CD
should be changed from
If a command is issued that can't be executed as a normal
command, and the command is the name of a directory, perform the cd
command to that directory.
to
If a command is issued that can't be executed as a normal
command, and the command is the name of a directory, then instead
execute
dirCommand dir
and zsh should provide a new builtin function
function dirCommand {
cd "$1"
}
Personally, I would redefine this function to call a function
that does a pushd.
Thanks
Dave
Messages sorted by:
Reverse Date,
Date,
Thread,
Author