From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1523 invoked from network); 11 Jan 2002 12:56:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Jan 2002 12:56:56 -0000 Received: (qmail 11286 invoked by alias); 11 Jan 2002 12:56:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4576 Received: (qmail 11275 invoked from network); 11 Jan 2002 12:56:41 -0000 From: Borsenkow Andrej To: d.vogt@lifebits.de, zsh-users@sunsite.auc.dk Subject: RE: problem with named directories over the net Date: Fri, 11 Jan 2002 15:55:48 +0300 Message-ID: <000501c19a9f$4af36ff0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 x-mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020111134158.F852@lifebits.de> Importance: Normal > > 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