Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: AUTO_CD
- X-seq: zsh-workers 22826
- From: Dave Yost <Dave@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: AUTO_CD
- Date: Fri, 6 Oct 2006 16:45:10 -0700
- In-reply-to: <20a807210610061336q20807935m1210eb1d6634f42e@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <pdy988306240627c14c51c58468@xxxxxxxxxxx> <200610062349.05354.arvidjaar@xxxxxxxxxx> <pdy98830624062fc14c69e22b5a@xxxxxxxxxxx> <20a807210610061336q20807935m1210eb1d6634f42e@xxxxxxxxxxxxxx>
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