mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
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:
parent
4fadc30247
commit
574a615ec4
2 changed files with 31 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue