Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Probs with nested braces in PROMPT



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