Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: problem with named directories over the net
- X-seq: zsh-users 4576
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: d.vogt@xxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxx
- Subject: RE: problem with named directories over the net
- Date: Fri, 11 Jan 2002 15:55:48 +0300
- Importance: Normal
- In-reply-to: <20020111134158.F852@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
> 
> I like to shorten my prompt by using '~' instead of the full path
> to my home directory.  For example:
> 
>   / $ cd ~/bin
>   ~/bin $
> 
> Now the problem occurs when I fire up mc.  Upon leaving mc, a
> script from the mc documentation cds into the current path and I
> get something like
> 
>   /net/server/share/home/luthien/bin $
> 
> as the prompt because this is where my home directory comes from.
> /home is a symbolic link to /net/server/share/home.  Any idea how
> I can prevent this?
> 
PS1="%~ %# "
Is it what you want?
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author