From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6982 invoked from network); 2 Jul 2006 14:38:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Jul 2006 14:38:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 90460 invoked from network); 2 Jul 2006 14:38:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Jul 2006 14:38:48 -0000 Received: (qmail 13015 invoked by alias); 2 Jul 2006 14:38:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10465 Received: (qmail 13005 invoked from network); 2 Jul 2006 14:38:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Jul 2006 14:38:40 -0000 Received: (qmail 89301 invoked from network); 2 Jul 2006 14:38:40 -0000 Received: from mout.perfora.net (217.160.230.41) by a.mx.sunsite.dk with SMTP; 2 Jul 2006 14:38:38 -0000 Received: from [72.23.77.226] (helo=[192.168.0.5]) by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis), id 0MKp2t-1Fx35l38zG-0003Mo; Sun, 02 Jul 2006 10:38:36 -0400 In-Reply-To: <060701112509.ZM24578@torch.brasslantern.com> References: <3E1F24BF-0332-4A29-9F54-5A3F0D24484E@petmystone.com> <060701112509.ZM24578@torch.brasslantern.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3308CBD5-97CA-47A3-A759-883A9F98D451@petmystone.com> Cc: zsh-users Content-Transfer-Encoding: 7bit From: Timothy Stone Subject: Re: Prompt truncating, redux Date: Sun, 2 Jul 2006 10:38:28 -0400 To: Bart Schaefer X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.2) X-Provags-ID: perfora.net abuse@perfora.net login:cc8f2e2326446829c1b030dcda0c3df2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jul 1, 2006, at 2:25 PM, Bart Schaefer wrote: > On Jul 1, 11:35am, Timothy Stone wrote: > } > } I figured out the expectations of zsh v. tcsh, save "set > ellipsis"... > } zsh seems to be able to do this, but I can't sort out the syntax > } using '%<...<%/' > > > What you appear to want is conditional syntax, not truncation syntax: > > %4(c:...:)%3c > > will show elipses if %c is at least 4 path elements long, nothing > if it > is less than 4 elements long, followed by the last 3 elements of %c. Perfect! Thank you. The `zsh' community is fantastic! Tim - -- Timothy Stone | www dot petmystone dot com Rising Sun, MD | tstone at petmystone dot com "This Satan's drink [coffee] is so delicious... we shall cheat Satan by baptizing it." Pope Clement VIII (1592-1605) - -- Timothy Stone | www dot petmystone dot com Rising Sun, MD | tstone at petmystone dot com "This Satan's drink [coffee] is so delicious... we shall cheat Satan by baptizing it." Pope Clement VIII (1592-1605) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEp9polNb2aYI3YNkRAtVOAJ9d3h0P1ukkDygu6JsRYYppgO6zRwCfTEYP emdb87gPYd3QimO6wnOfRE4= =BFNV -----END PGP SIGNATURE-----