A fast, asynchronous Zsh prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
The subst-async
method has always included workarounds for a bug in Zsh itself which has been fixed in Zsh v5.8. This update makes changes to agkozak-zsh-prompt
that eliminate unnecessary forking if the shell version is sufficiently recent and subst-async
is in use. The majority of users default to the usr1
async method, however, so they should not be affected.
$AGKOZAK_SHOW_STASH
has been fixed.The background jobs indicator was not updating immediately when a job ended. The prompt now uses the native Zsh %j
escape to fetch the number of background jobs. Please update your custom prompts accordingly; the examples have all been updated.
Error message after unloading prompt on Zsh < v5.3.
The unload function was issuing a warning on Zsh versions less than 5.3.0; this has been fixed.
agkozak-zsh-prompt now supports promptinit
's prompt_cleanup
feature, which allows one to switch prompts more easily.
The prompt is now fully compatible with ZSH's promptinit
system.
The characters used to signify path abbreviation with AGKOZAK_PROMPT_DIRTRIM
(...
by default) can now be overridden with AGKOZAK_PROMPT_DIRTRIM_STRING
.