Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Probs with nested braces in PROMPT
- X-seq: zsh-users 3256
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bernd Eggink" <eggink@xxxxxxxxxxxxxx>, "Zsh Users" <zsh-users@xxxxxxxxxxxxxx>
- Subject: RE: Probs with nested braces in PROMPT
- Date: Thu, 6 Jul 2000 13:59:53 +0400
- Importance: Normal
- In-reply-to: <20000706113451.A2892@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
>
> PROMPT='%{^[[5;46m%}%m:%l %T %~${PROJECT:+
> %{^[[31m[%}}$PROJECT${PROJECT:+]%{^[[30m%}}%#%{^[[0m%}'
>
You do have promptsubst set, don't you?
What about
PROMPT='%{^[[5;46m%}%m:%l %T %~${PROJECT:+
%{^[[31m[%\}}$PROJECT${PROJECT:+]%{^[[30m%\}}%#%{^[[0m%}'
(note, that `}' in %} are quoted). This seems to work. I suspect, why it
happens, but I do not know code good enugh.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author