This is prompt for zsh designed to be:
- Simple: only shows the information that matters
- Slim: fits on one line, with VCS information on the right and disappearing as needed
- Fast: expensive lookups are minimized and done asynchronously
- Simple implementation: heavily relies on existing libraries
It's likely going to evolve very little (if at all) functionality-wise.
I recommend a zsh plugin manager, such as Zplugin:
zplugin light https://gitlab.com/hugoh/zsh-ssfprompt.git
- For asynchronous lookups, you will need to install zsh-async.
- One Git status module; by default, it uses posh-git-sh
Again, with Zplugin:
zplugin light mafredri/zsh-async
zplugin ice pick'git-prompt.sh'; zplugin light lyze/posh-git-sh
zplugin light https://gitlab.com/hugoh/zsh-ssfprompt.git
You can of course defined your own PROMPT
variable.
You can also override the Git status function to your liking.
To use gitHUD:
prompt_ssfprompt_vcs_status() { command githud zsh }
To use git-radar:
prompt_ssfprompt_vcs_status() { command git-radar --zsh }
Etc.