2020-01-08 15:23:08 +00:00
|
|
|
Hooks:
|
|
|
|
|
2020-01-09 12:01:41 +00:00
|
|
|
p10k-on-init (may be called while zle is active or not)
|
|
|
|
p10k-on-pre-prompt (may be called while zle is active or not)
|
2020-01-08 15:23:08 +00:00
|
|
|
p10k-on-post-prompt
|
2020-01-08 19:16:52 +00:00
|
|
|
p10k-on-post-widget
|
2020-01-08 15:23:08 +00:00
|
|
|
|
2020-01-08 19:16:52 +00:00
|
|
|
Parameters accessible from all hooks:
|
2020-01-08 15:23:08 +00:00
|
|
|
|
|
|
|
P9K_PROMPT=regular|instant
|
|
|
|
P9K_TTY=old|new
|
2020-01-08 19:16:52 +00:00
|
|
|
|
|
|
|
Parameters accessible from p10k-on-post-widget:
|
|
|
|
|
|
|
|
All regular zle parameters (WIDGET, BUFFER, CURSOR, etc.).
|
|
|
|
P9K_COMMAND
|
|
|
|
P9K_LASTCOMMAND
|
|
|
|
P9K_LASTBUFFER
|
|
|
|
P9K_LASTCURSOR
|
|
|
|
|
|
|
|
`P9K_LAST*` parameters are set if and only if this isn't the first p10k-on-post-widget call after p10k-on-init.
|
|
|
|
|
|
|
|
# TODO: call all hooks with user options
|