diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-12-22 23:40:53 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-12-22 23:40:53 +0300 |
commit | 4437e539e9541251746b0917bfd0aea1ffa3493a (patch) | |
tree | e160eb65468f40d82aed6148f7fec9060c12ec49 /functions/vcs.zsh | |
parent | e8c477235c4d0e29ce32f5f93274ee4a6b768e8c (diff) | |
parent | 4e751e9771555fd65aae94849091427b94463818 (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.zsh | 6 |
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 |