zsh-users
 help / color / mirror / code / Atom feed
* Probs with nested braces in PROMPT
@ 2000-07-06  9:34 Bernd Eggink
  2000-07-06  9:59 ` Andrej Borsenkow
  0 siblings, 1 reply; 6+ messages in thread
From: Bernd Eggink @ 2000-07-06  9:34 UTC (permalink / raw)
  To: Zsh Users

Are nested braces supposed to work in PROMPT (zsh 3.1.9-dev-2)? 
I tried this:

PROMPT='%{^[[5;46m%}%m:%l %T %~${PROJECT:+ %{^[[31m[%}}$PROJECT${PROJECT:+]%{^[[30m%}}%#%{^[[0m%}'

which looks good if PROJECT is set, for example with PROJECT=ecc:

    eggink3:1 11:25 ~/necht [ecc]%

(actually nicely coloured). However, when PROJECT is not set, it results
in something ugly:

    eggink3:1 11:26 ~/necht}}%

Bug or feature?

Regards,
Bernd

-- 
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-07-06 11:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-06  9:34 Probs with nested braces in PROMPT Bernd Eggink
2000-07-06  9:59 ` Andrej Borsenkow
2000-07-06 10:12   ` Peter Stephenson
2000-07-06 10:19     ` Andrej Borsenkow
2000-07-06 11:09       ` Peter Stephenson
2000-07-06 11:03   ` Bernd Eggink

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