Closed eddyg closed 3 years ago
Thanks for the compliment!
I'll look into it.
OK, I've got the develop
branch working with promptinit
(with this commit); I'll merge it to master
when I've cleaned up and tested a few things.
I've done the following so far:
$prompt_opts
_agkozak_preexec
and _agkozak_precmd
to prompt_agkozak_preexec
and prompt_agkozak_precmd
so that they will be disabled when the agkozak-zsh-prompt is disabled*README.md
, which is copiousprompt_agkozak-zsh-prompt_setup
shim fileI'll try to provide a prompt preview function when I have more time.
Thanks, @eddyg and @marlonrichert, for helping to make the prompt better.
* @marlonrichert, don't you have a proposed patch for the current promptinit
API documentation? What we have now doesn't sufficiently explain the naming conventions necessary to make any of this work.
@agkozak Yes, I’m working on a promptinit
patch, but it updates only a tiny part of the documentation. What questions do you need answered?
The sentence
The
precmd
andpreexec
hooks are automatically adjusted if the prompt theme changes or is disabled.
should really be something more like
If your
precmd
andpreexec
hooks are namedprompt_
name_precmd
andprompt_
name_preexec
(where name is the name of your theme), they will be automatically adjusted if the theme changes or is disabled.
Yes, that part of the documentation will be improved with my patch.
@eddyg @marlonrichert Release v3.10.0 now has full promptinit
compatibility. Thanks for your suggestions.
Thanks for the flexible, lightweight, easy-to-understand prompt!
Any plans to implement support for Zsh's
promptinit
API?(For ref, this was brought up in this zsh-snap issue.)