mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
feat(ys): show svn
repository information (#10582)
This commit is contained in:
parent
2b492aec93
commit
4e0f19cf92
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,13 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="$YS_VCS_PROMPT_SUFFIX"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="$YS_VCS_PROMPT_DIRTY"
|
ZSH_THEME_GIT_PROMPT_DIRTY="$YS_VCS_PROMPT_DIRTY"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="$YS_VCS_PROMPT_CLEAN"
|
ZSH_THEME_GIT_PROMPT_CLEAN="$YS_VCS_PROMPT_CLEAN"
|
||||||
|
|
||||||
|
# SVN info
|
||||||
|
local svn_info='$(svn_prompt_info)'
|
||||||
|
ZSH_THEME_SVN_PROMPT_PREFIX="${YS_VCS_PROMPT_PREFIX1}svn${YS_VCS_PROMPT_PREFIX2}"
|
||||||
|
ZSH_THEME_SVN_PROMPT_SUFFIX="$YS_VCS_PROMPT_SUFFIX"
|
||||||
|
ZSH_THEME_SVN_PROMPT_DIRTY="$YS_VCS_PROMPT_DIRTY"
|
||||||
|
ZSH_THEME_SVN_PROMPT_CLEAN="$YS_VCS_PROMPT_CLEAN"
|
||||||
|
|
||||||
# HG info
|
# HG info
|
||||||
local hg_info='$(ys_hg_prompt_info)'
|
local hg_info='$(ys_hg_prompt_info)'
|
||||||
ys_hg_prompt_info() {
|
ys_hg_prompt_info() {
|
||||||
|
@ -66,6 +73,7 @@ PROMPT="
|
||||||
%{$terminfo[bold]$fg[yellow]%}%~%{$reset_color%}\
|
%{$terminfo[bold]$fg[yellow]%}%~%{$reset_color%}\
|
||||||
${hg_info}\
|
${hg_info}\
|
||||||
${git_info}\
|
${git_info}\
|
||||||
|
${svn_info}\
|
||||||
${venv_info}\
|
${venv_info}\
|
||||||
\
|
\
|
||||||
[%*] $exit_code
|
[%*] $exit_code
|
||||||
|
|
Loading…
Reference in a new issue