Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prompt truncating, redux
- X-seq: zsh-users 10465
- From: Timothy Stone <registrant@xxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Prompt truncating, redux
- Date: Sun, 2 Jul 2006 10:38:28 -0400
- Cc: zsh-users <zsh-users@xxxxxxxxxx>
- In-reply-to: <060701112509.ZM24578@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <3E1F24BF-0332-4A29-9F54-5A3F0D24484E@xxxxxxxxxxxxxx> <060701112509.ZM24578@xxxxxxxxxxxxxxxxxxxxxx>
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author