Set up vcs_info before enabling the prompt
This commit is contained in:
parent
9f4043a852
commit
019b2ffed8
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user