zsh-users
 help / color / mirror / code / Atom feed
From: Timothy Stone <registrant@petmystone.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users <zsh-users@sunsite.dk>
Subject: Re: Prompt truncating, redux
Date: Sun, 2 Jul 2006 10:38:28 -0400	[thread overview]
Message-ID: <3308CBD5-97CA-47A3-A759-883A9F98D451@petmystone.com> (raw)
In-Reply-To: <060701112509.ZM24578@torch.brasslantern.com>

-----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-----


      reply	other threads:[~2006-07-02 14:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-01 15:35 Timothy Stone
2006-07-01 18:25 ` Bart Schaefer
2006-07-02 14:38   ` Timothy Stone [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3308CBD5-97CA-47A3-A759-883A9F98D451@petmystone.com \
    --to=registrant@petmystone.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).