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

Re: AUTO_CD



$ zsh -f
$ ls -d software
software
$ software
zsh: command not found: software
$ setopt autocd
$ software
$ pwd
/e/acs/software
$ dirs
~/software
$ cd
$ setopt autopushd
$ software
$ dirs
~/software ~

Case and underscore are ignored in option names.

 - Vin

On 10/6/06, Dave Yost <Dave@xxxxxxxx> wrote:
At 11:49 PM +0400 2006-10-06, Andrey Borzenkov wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Friday 06 October 2006 22:35, Dave Yost wrote:
>> Hi.
>>
>> There should be a way to get something like AUTO_CD but that does a pushd.
>>
>
>What about 'setopt autopushd'?
>
> -andrey

Man zshall doesn't contain the string autopushd anywhere.  I presume you mean AUTO_PUSHD, which (as I read it) makes all cd commands act like pushd.  This is different from what I'm asking, though AUTO_PUSHD is the name you would expect my request would use.



--
Whoever you are, no matter how lonely,
the world offers itself to your imagination,
calls to you like the wild geese, harsh and exciting--
over and over announcing your place
in the family of things.			Mary Oliver



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