Add help message for async VCS to prompt

This commit is contained in:
tastytea 2022-04-24 18:28:51 +02:00
parent 019b2ffed8
commit dfa2822dfd
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -1,8 +1,8 @@
# tastytea prompt theme
# Asynchronous VCS info if zsh-async is detected.
prompt_tastytea_help () {
cat <<'EOF'
Minimal + vcs_info on the left, PWD on the right (shortened to 1/3 screen).
This prompt is colour-scheme-able. You can invoke it thus:
prompt tastytea [user [root [remote [vcs [path [highlight [inactive]]]]]]]
@ -10,6 +10,10 @@ This prompt is colour-scheme-able. You can invoke it thus:
Set DEFAULT_USER to only show non-default users in prompt. You need to set up
vcs_info before enabling the prompt.
EOF
if [[ ! -v ASYNC_VERSION ]]; then
print "Load https://github.com/mafredri/zsh-async" \
"for asynchronous VCS info support."
fi
}
# Reduce directory elements to first letter until directory path is reasonably