From: Seth Kurtzberg <seth@cql.com>
To: "Mika Seppänen" <cooz@ee.oulu.fi>
Cc: zsh-users@sunsite.dk
Subject: Re: Named directories
Date: Mon, 21 Feb 2005 21:35:31 -0700 [thread overview]
Message-ID: <421AB693.7030909@cql.com> (raw)
In-Reply-To: <a5081c29a912da1283f3f3c075c76785@ee.oulu.fi>
Mika Seppänen 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,
and if he refers to it as, say, ~a, the prompt shows ~b. I've seen the
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
question):
export UTILDIR=/a/b/c
export ud=$UTILDIR
then ~UTILDIR takes me to the correct place (since I have the setopt's
required to do this), but the prompt shows ~ud, not ~UTILDIR.
It would, from my perspective, be nice to say ~ud and have it
displayed in the prompt as ~UTILDIR (less typing, more meaningful prompt).
If this is not an anaologous situation, would someone please tell me
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=%s\> and option autonamedirs unset, though
> 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!
>
next prev parent reply other threads:[~2005-02-22 4:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 14:17 Mika Seppänen
2005-02-21 14:21 ` Vincent Lefevre
2005-02-21 14:31 ` Peter Stephenson
2005-02-21 14:51 ` Mika Seppänen
2005-02-21 21:49 ` Mika Seppänen
2005-02-22 4:35 ` Seth Kurtzberg [this message]
2005-02-22 11:54 ` Mika Seppänen
2005-02-22 13:09 ` Seth Kurtzberg
2005-02-26 22:17 ` Bart Schaefer
2005-08-07 3:47 named directories UVV
2005-08-07 10:00 ` J
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=421AB693.7030909@cql.com \
--to=seth@cql.com \
--cc=cooz@ee.oulu.fi \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).