Move some vcs_info options out of prompt theme

Move all vcs_info options that are not styling related to .zshrc
This commit is contained in:
tastytea 2022-04-24 15:26:04 +02:00
parent d82a8135de
commit 08b9289e00
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 6 additions and 6 deletions

View File

@ -160,6 +160,8 @@ esac
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

@ -50,12 +50,10 @@ function prompt_tastytea_vcs() {
autoload -U vcs_info
zmodload zsh/zutil
zstyle ':vcs_info:*' enable git svn hg # vcs_info_printsys
zstyle ':vcs_info:*' formats "%F{${prompt_tastytea_colours[vcs]}}(%b)%u%c%f "
zstyle ':vcs_info:*' actionformats "%F{${prompt_tastytea_colours[vcs]}}(%b|%F{${prompt_tastytea_colours[highlight]}}%a%F{${prompt_tastytea_colours[vcs]}})%u%c%f "
zstyle ':vcs_info:*' stagedstr "%F{${prompt_tastytea_colours[highlight]}}●"
zstyle ':vcs_info:*' unstagedstr "%F{${prompt_tastytea_colours[highlight]}}○"
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' formats "%F{${prompt_tastytea_colours[vcs]}}(%b)%u%c%f "
zstyle ':vcs_info:*' actionformats "%F{${prompt_tastytea_colours[vcs]}}(%b|%F{${prompt_tastytea_colours[highlight]}}%a%F{${prompt_tastytea_colours[vcs]}})%u%c%f "
zstyle ':vcs_info:*' stagedstr "%F{${prompt_tastytea_colours[highlight]}}●"
zstyle ':vcs_info:*' unstagedstr "%F{${prompt_tastytea_colours[highlight]}}○"
# Use asynchronous VCS prompt if zsh-async is available
if [[ -v ASYNC_VERSION ]]; then