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

Re: precmd, preexec, and supplied prompt themes



Bart Schaefer wrote:

> } The first is that the prompt_simple_preview function doesn't work.
>
> "Doesn't work" how?

zsh-% prompt_simple_preview
prompt_preview_theme:2: bad pattern: PS1=%B%{^[[39m%}zsh-%# %{^[[39m%}%b

> Also your attempt to display the available colors in prompt_simple_help
> is not working for me; "black" compes out white, and neither it nor
> "white" are visible on the white background of my xterm.  I'd suggest
> restricting the help to bare text and leaving the color demonstrations
> to the preview.

Ok.  (Mine made them grey.)  But it cleverly hides non-viable options from
the user.


> Try "typeset -ga preexec_functions"

That worked.  (I knew it had to be something to do with "global".)

>as was pointed out somewhere on this thread.

Sorry, I somehow missed it.  (Matt just had the -a).

Thanks.

Bill





Messages sorted by: Reverse Date, Date, Thread, Author