From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16375 invoked from network); 2 Jul 1999 16:23:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Jul 1999 16:23:41 -0000 Received: (qmail 28459 invoked by alias); 2 Jul 1999 16:23:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6951 Received: (qmail 28452 invoked from network); 2 Jul 1999 16:23:30 -0000 Message-Id: <9907021554.AA36115@ibmth.df.unipi.it> To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: pws-24: prompt escapes for script/function and lineno In-Reply-To: "Sven Wischnowsky"'s message of "Fri, 02 Jul 1999 15:05:58 DFT." <199907021305.PAA16582@beta.informatik.hu-berlin.de> Date: Fri, 02 Jul 1999 17:54:50 +0200 From: Peter Stephenson Sven Wischnowsky wrote: > > +/usr/local/lib/hepix/shells/site/aliases.sh:54> [ -r /u/theor/pubtheor/gro > up_aliases.sh ] > > Why not share some code with `%c' and allow `%N'? Hm, this > makes the default be only the last pathname-component, is that ok? > Does anyone want to see the whole path anyway? Yes, I do. The file executed could be anywhere, and there's not much point showing it unless you show the while filename. Now if only the prompt code had been written to use the characters which show you the full path, but to use a non-zero number to give you the last components, everything would have been so much simpler. I've never understood why it wasn't. -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy