Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Prompt truncating, redux
- X-seq: zsh-users 10463
- From: Timothy Stone <registrant@xxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Prompt truncating, redux
- Date: Sat, 1 Jul 2006 11:35:06 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
List,
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 '%<...<%/'
For example:
user@host [...seg1/seg2/seg3] % in tcsh might be set with:
set prompt = "%n@%m %B[%b%c3%B]%b %% "
set ellipsis
In zsh, I can get everything but the ellipsis to behave, e.g.,
%
% cd really/deep/path/to/resource
% print -rP '%n@%m %B[%b%3~%B]%b %# '
user@host [path/to/resource] %
%
My various uses of the truncation syntax can't give me the "ellipsis"
I hope for... any hints? Maybe I'm fretting to much, but given some
of the really complex options and sample paths I've seen, mine must
be simple... right? :)
Thanks in advance,
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)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEppYvlNb2aYI3YNkRAhMmAJwLfpf7A18RQSmUSPh11+o+0sZ81wCdH4g3
lt3+lAEvMl3Y2G0GzSikG0s=
=7jEU
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author