From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2595 invoked from network); 11 Jan 2002 14:29:16 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Jan 2002 14:29:16 -0000 Received: (qmail 28279 invoked by alias); 11 Jan 2002 14:29:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4578 Received: (qmail 28258 invoked from network); 11 Jan 2002 14:28:57 -0000 X-Authentication-Warning: erdbeere.lifebits.local: luthien set sender to d.vogt@lifebits.de using -f Date: Fri, 11 Jan 2002 15:28:49 +0100 From: Dominik Vogt To: zsh-users@sunsite.auc.dk Subject: Re: problem with named directories over the net Message-ID: <20020111152849.G852@lifebits.de> Reply-To: d.vogt@lifebits.de Mail-Followup-To: zsh-users@sunsite.auc.dk References: <20020111134158.F852@lifebits.de> <000501c19a9f$4af36ff0$21c9ca95@mow.siemens.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <000501c19a9f$4af36ff0$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Fri, Jan 11, 2002 at 03:55:48PM +0300 X-Virus-Scanned: by AMaViS perl-11 X-Sender: 520008918237-0001@t-dialin.net On Fri, Jan 11, 2002 at 03:55:48PM +0300, Borsenkow Andrej wrote: > > > > > 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? No, I already have that im my prompt. The problem is that only "/home/luthien" is written as "~", not "/net/server/share/home/luthien". Bye Dominik ^_^ ^_^ -- Dominik Vogt, email: d.vogt@lifebits.de LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20