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

Re: precmd, preexec, and supplied prompt themes




Bart Schaefer wrote:
> On Oct 13,  2:53pm, William Scott wrote:
> }
> } zsh-% prompt_simple_preview
> } prompt_preview_theme:2: bad pattern: PS1=%B%{^[[39m%}zsh-%# %{^[[39m%}%b
>
> You have 'setopt globsubst', which prompt_preview_theme is not prepared
> to deal with.  That should probably be considered a bug.
>

Unsetting it masked perhaps another (in promptinit):

zsh-% prompt_simple_preview
simple theme:
prompt_preview_theme:9: command not found: precmd
zsh-% command arg1 arg2 ... argn
prompt_preview_theme:12: command not found: preexec

simple theme with parameters `default yellow green':
prompt_preview_theme:9: command not found: precmd
zsh-% command arg1 arg2 ... argn
prompt_preview_theme:12: command not found: preexec
zsh-%


Sorry for opening this can of worms...



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