From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13417 invoked from network); 22 Feb 2005 04:35:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Feb 2005 04:35:52 -0000 Received: (qmail 9123 invoked from network); 22 Feb 2005 04:35:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Feb 2005 04:35:47 -0000 Received: (qmail 16390 invoked by alias); 22 Feb 2005 04:35:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8540 Received: (qmail 16378 invoked from network); 22 Feb 2005 04:35:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Feb 2005 04:35:37 -0000 Received: (qmail 8034 invoked from network); 22 Feb 2005 04:35:37 -0000 Received: from 216-19-209-140.getnet.net (HELO mail.cql.com) (216.19.209.140) by a.mx.sunsite.dk with SMTP; 22 Feb 2005 04:35:34 -0000 Received: from [192.168.1.14] ([::ffff:192.168.1.14]) by mail.cql.com with esmtp; Mon, 21 Feb 2005 21:51:03 -0700 Message-ID: <421AB693.7030909@cql.com> Date: Mon, 21 Feb 2005 21:35:31 -0700 From: Seth Kurtzberg User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "=?ISO-8859-1?Q?Mika_Sepp=E4nen?=" CC: zsh-users@sunsite.dk Subject: Re: Named directories References: <2e24629722633f291ea82664e14cbc5d@ee.oulu.fi> <200502211431.j1LEVEJe015971@news01.csr.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Mika Sepp=E4nen wrote: > 21.2.2005 kello 16:31, Peter Stephenson wrote: > >> You need to refer to "~work" at least once; the usual trick is to put >> >> : ~work >> >> in your .zshrc after defining the directory. You can also "setopt >> autonamedirs" to make all such parameters eligible for this >> replacement. > His situation is that the directory he is talking about has two names,=20 and if he refers to it as, say, ~a, the prompt shows ~b. I've seen the=20 same thing, although I've never considered it difficult to work with, as = long as (in his case) ~work gets you where you want to go. For example, I have the following (and sorry if I'm misinterpreting the=20 question): export UTILDIR=3D/a/b/c export ud=3D$UTILDIR then ~UTILDIR takes me to the correct place (since I have the setopt's=20 required to do this), but the prompt shows ~ud, not ~UTILDIR. It would, from my perspective, be nice to say ~ud and have it=20 displayed in the prompt as ~UTILDIR (less typing, more meaningful prompt= ). If this is not an anaologous situation, would someone please tell me=20 why, and how it relates to the original question? TIA > > I found that by reading manuals and using google, but It doesn't help. > > I get following: (PS1=3D%s\> and option autonamedirs unset, though=20 > seting it doesn't change situation in anyway) > > ~>cd work > ~/Projektit/rnd/ott/sip.imp > ~/Projektit/rnd/ott/sip.imp>pwd > /Users/c8z/Projektit/rnd/ott/sip.imp > ~/Projektit/rnd/ott/sip.imp>cd foo > ~foo > ~foo>pwd > /usr/local/etc > ~foo> > > (zsh 4.1.1 on Mac OS X) > > Mika > > > !DSPAM:4219f941108266494394366! >