zsh-users
 help / color / mirror / code / Atom feed
From: Timothy Stone <registrant@petmystone.com>
To: zsh-users <zsh-users@sunsite.dk>
Subject: Prompt truncating, redux
Date: Sat, 1 Jul 2006 11:35:06 -0400	[thread overview]
Message-ID: <3E1F24BF-0332-4A29-9F54-5A3F0D24484E@petmystone.com> (raw)

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


             reply	other threads:[~2006-07-01 15:35 UTC|newest]

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

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=3E1F24BF-0332-4A29-9F54-5A3F0D24484E@petmystone.com \
    --to=registrant@petmystone.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).