reset-prompt
Summary
Section titled “Summary”reset-prompt issues zle .reset-prompt after a plugin or snippet loads, refreshing
the prompt. It is an alternative to prefixing wait'' with ! for prompt updates.
Syntax / Usage
Section titled “Syntax / Usage”zi ice wait reset-promptzi light user/prompt-pluginDetails
Section titled “Details”When a turbo-loaded plugin changes the prompt appearance, the prompt needs to be redrawn
after loading. The conventional way is wait'!...' (the ! prefix on wait''). The
reset-prompt ice provides the same effect declaratively without needing to use the
! syntax on wait''.
Examples
Section titled “Examples”# Redraw prompt after plugin loadszi ice wait lucid reset-promptzi light user/my-prompt-modifierCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- Normally prefixing
wait''with!(e.g.wait'!') is sufficient and is the more common pattern. Usereset-promptwhen you want to be explicit or cannot use!.
See Also
Section titled “See Also”- wait
- lucid