aboutsummaryrefslogtreecommitdiff
path: root/functions/vcs.zsh
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2015-12-22 23:40:53 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-12-22 23:40:53 +0300
commit4437e539e9541251746b0917bfd0aea1ffa3493a (patch)
treee160eb65468f40d82aed6148f7fec9060c12ec49 /functions/vcs.zsh
parente8c477235c4d0e29ce32f5f93274ee4a6b768e8c (diff)
parent4e751e9771555fd65aae94849091427b94463818 (diff)
Merge pull request #165 from dritter/battery_visual_identifier
Adding ability for segments to be combined.
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r--functions/vcs.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 39d0fdae..49dccc18 100644
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -78,6 +78,12 @@ function +vi-hg-bookmarks() {
}
function +vi-vcs-detect-changes() {
+ if [[ "${hook_com[vcs]}" == "git" ]]; then
+ vcs_visual_identifier='VCS_GIT_ICON'
+ elif [[ "${hook_com[vcs]}" == "hg" ]]; then
+ vcs_visual_identifier='VCS_HG_ICON'
+ fi
+
if [[ -n "${hook_com[staged]}" ]] || [[ -n "${hook_com[unstaged]}" ]]; then
VCS_WORKDIR_DIRTY=true
else