From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4196 invoked from network); 6 Oct 2006 23:45:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Oct 2006 23:45:44 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 32664 invoked from network); 6 Oct 2006 23:45:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 23:45:38 -0000 Received: (qmail 21771 invoked by alias); 6 Oct 2006 23:45:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22826 Received: (qmail 21762 invoked from network); 6 Oct 2006 23:45:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2006 23:45:35 -0000 Received: (qmail 32352 invoked from network); 6 Oct 2006 23:45:35 -0000 Received: from sd-green-bigip-207.dreamhost.com (HELO spunkymail-a10.dreamhost.com) (208.97.132.207) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 23:45:34 -0000 Received: from [192.168.1.2] (adsl-68-121-103-163.dsl.pltn13.pacbell.net [68.121.103.163]) by spunkymail-a10.dreamhost.com (Postfix) with ESMTP id 75C0D162FE2 for ; Fri, 6 Oct 2006 16:45:32 -0700 (PDT) Mime-Version: 1.0 Message-Id: In-Reply-To: <20a807210610061336q20807935m1210eb1d6634f42e@mail.gmail.com> References: <200610062349.05354.arvidjaar@newmail.ru> <20a807210610061336q20807935m1210eb1d6634f42e@mail.gmail.com> Date: Fri, 6 Oct 2006 16:45:10 -0700 To: zsh-workers@sunsite.dk From: Dave Yost Subject: Re: AUTO_CD Content-Type: text/plain; charset="us-ascii" 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 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