summaryrefslogtreecommitdiff
path: root/functions/vcs.zsh
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-02-10 18:48:35 +0300
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-02-10 18:53:49 +0300
commit15cbe8dbc94ef08506cce5acb2511f51a1cd20be (patch)
treeaca34da863980c5dcbad7845394b9a670fc7a811 /functions/vcs.zsh
parent30076080a734c0bff552293b8b2d4e7c69019c03 (diff)
parenta58e8bdc8cf4c51c80dc9e63eef52e95214c54f2 (diff)
[SSH]: resolved merge conflict and merged with current next
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r--functions/vcs.zsh13
1 files changed, 12 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 93925f15..5defa9bc 100644
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -110,7 +110,18 @@ function +vi-hg-bookmarks() {
function +vi-vcs-detect-changes() {
if [[ "${hook_com[vcs]}" == "git" ]]; then
- vcs_visual_identifier='VCS_GIT_ICON'
+
+ local remote=`git ls-remote --get-url`
+ if [[ "$remote" =~ "github" ]] then
+ vcs_visual_identifier='VCS_GIT_GITHUB_ICON'
+ elif [[ "$remote" =~ "bitbucket" ]] then
+ vcs_visual_identifier='VCS_GIT_BITBUCKET_ICON'
+ elif [[ "$remote" =~ "gitlab" ]] then
+ vcs_visual_identifier='VCS_GIT_GITLAB_ICON'
+ else
+ vcs_visual_identifier='VCS_GIT_ICON'
+ fi
+
elif [[ "${hook_com[vcs]}" == "hg" ]]; then
vcs_visual_identifier='VCS_HG_ICON'
elif [[ "${hook_com[vcs]}" == "svn" ]]; then