1
0
Fork 0

Set up vcs_info before enabling the prompt

This commit is contained in:
tastytea 2022-04-24 18:05:17 +02:00
parent 9f4043a852
commit 019b2ffed8
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 4 additions and 3 deletions

View File

@ -157,11 +157,11 @@ esac
[[ -d "${ZDOTDIR}"/functions ]] && autoload -Uz "${ZDOTDIR}"/functions/*
[[ -f "${ZDOTDIR}"/themes/syntax-unikitty-reversible.zsh ]] && source "${ZDOTDIR}"/themes/syntax-unikitty-reversible.zsh
zstyle ':vcs_info:*' enable git svn hg # vcs_info_printsys
zstyle ':vcs_info:*' check-for-changes true
DEFAULT_USER="${DEFAULT_USER:-tastytea}"
autoload -U promptinit && promptinit
prompt tastytea
zstyle ':vcs_info:*' enable git svn hg # vcs_info_printsys
zstyle ':vcs_info:*' check-for-changes true
return 0

View File

@ -7,7 +7,8 @@ This prompt is colour-scheme-able. You can invoke it thus:
prompt tastytea [user [root [remote [vcs [path [highlight [inactive]]]]]]]
Set DEFAULT_USER to only show non-default users in prompt.
Set DEFAULT_USER to only show non-default users in prompt. You need to set up
vcs_info before enabling the prompt.
EOF
}