summaryrefslogtreecommitdiff
path: root/01_Internal.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Internal.zsh')
-rw-r--r--01_Internal.zsh11
1 files changed, 10 insertions, 1 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index c0604af..2b404c6 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -134,7 +134,16 @@ __get_hg_branch ()
fi
}
-__cleanup_git_branch_name() { sed 's,^tags/,,;s,^remotes/,,;s,\^0$,,' }
+__cleanup_git_branch_name() { sed '
+ s,^tags/\(.*\),[\1],
+ /^remotes/ {
+ s,^remotes/,,
+ s,^devel/,~,
+ s,^origin/,,
+ s,^,%{\\033['$color[standout]'m%},
+ }
+ s,\^0$,,
+ ' }
__get_git_fullstatus ()
{