Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Probs with nested braces in PROMPT
- X-seq: zsh-users 3255
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxxxxxx>
- Subject: Probs with nested braces in PROMPT
- Date: Thu, 6 Jul 2000 11:34:55 +0200
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author