vcs: add vcs_info support in lib/vcs.zsh

lib/git.zsh isn't generic enough for me, and zsh provides vcs_info
so we may as well use it.
This commit is contained in:
Florent Thoumie 2010-12-29 11:56:51 +00:00
commit 574a615ec4
2 changed files with 31 additions and 1 deletions

View file

@ -31,8 +31,14 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt
ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty
ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean
# vcs theming default: Variables for theming the vcs info prompt
ZSH_THEME_VCS_PROMPT_PREFIX=""
ZSH_THEME_VCS_PROMPT_SUFFIX=""
ZSH_THEME_VCS_PROMPT_STAGED="!"
ZSH_THEME_VCS_PROMPT_UNSTAGED="*"
# Setup the prompt with pretty colors
setopt prompt_subst
# Load the theme
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
source "$ZSH/themes/$ZSH_THEME.zsh-theme"