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

Re: AUTO_CD



At 04:36 PM -0400 2006-10-06, Vin Shelton wrote:
>$ 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 ~

Yes, but autocd goes beyond what is desired: it makes every cd into a pushd.

$ ls -d foo
foo
$ cd foo
$ dirs
~/software/foo ~/software ~

>Case and underscore are ignored in option names.

Good to know.

Dave

>
> - 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