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:
parent
d82a8135de
commit
08b9289e00
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user