diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-12-18 03:07:22 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-12-18 03:07:22 +0300 |
commit | d5a8211aa1e2500f57a269eae0552602f6f2b164 (patch) | |
tree | e160eb65468f40d82aed6148f7fec9060c12ec49 /functions/vcs.zsh | |
parent | 2a519ee2d7ed7bd2a70aabd42bba7e95baa8e714 (diff) | |
parent | ac4502ca1fafab54c07d22e4841d8c6c7aeffc95 (diff) |
Merge branch 'battery_visual_identifier' of github.com:dritter/powerlevel9k into battery_visual_identifier
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 |