mirror of
https://github.com/Powerlevel9k/powerlevel9k.git
synced 2024-09-21 02:17:14 +00:00
svn: debugging #312
This commit is contained in:
parent
11fcb5684b
commit
18eddbe72a
@ -113,8 +113,6 @@ function +vi-vcs-detect-changes() {
|
||||
vcs_visual_identifier='VCS_GIT_ICON'
|
||||
elif [[ "${hook_com[vcs]}" == "hg" ]]; then
|
||||
vcs_visual_identifier='VCS_HG_ICON'
|
||||
elif [[ "${hook_com[vcs]}" == "svn" ]]; then
|
||||
vcs_visual_identifier='VCS_SVN_ICON'
|
||||
fi
|
||||
|
||||
if [[ -n "${hook_com[staged]}" ]] || [[ -n "${hook_com[unstaged]}" ]]; then
|
||||
@ -125,6 +123,7 @@ function +vi-vcs-detect-changes() {
|
||||
}
|
||||
|
||||
function +vi-svn-detect-changes() {
|
||||
vcs_visual_identifier='VCS_SVN_ICON'
|
||||
local svn_status="$(svn status)"
|
||||
if [[ -n "$(echo "$svn_status" | grep \^\?)" ]]; then
|
||||
hook_com[unstaged]+=" $(print_icon 'VCS_UNTRACKED_ICON')"
|
||||
|
@ -885,7 +885,7 @@ powerlevel9k_vcs_init() {
|
||||
zstyle ':vcs_info:git*+set-message:*' hooks $POWERLEVEL9K_VCS_GIT_HOOKS
|
||||
defined POWERLEVEL9K_VCS_HG_HOOKS || POWERLEVEL9K_VCS_HG_HOOKS=(vcs-detect-changes)
|
||||
zstyle ':vcs_info:hg*+set-message:*' hooks $POWERLEVEL9K_VCS_HG_HOOKS
|
||||
defined POWERLEVEL9K_VCS_SVN_HOOKS || POWERLEVEL9K_VCS_SVN_HOOKS=(vcs-detect-changes svn-detect-changes)
|
||||
defined POWERLEVEL9K_VCS_SVN_HOOKS || POWERLEVEL9K_VCS_SVN_HOOKS=(svn-detect-changes)
|
||||
zstyle ':vcs_info:svn*+set-message:*' hooks $POWERLEVEL9K_VCS_SVN_HOOKS
|
||||
|
||||
# For Hg, only show the branch name
|
||||
|
Loading…
Reference in New Issue
Block a user