Skip to content
Browse files

use git-completion script for getting the current branch, as it seems…

… better-featured
  • Loading branch information...
1 parent a59bcaf commit 5fc6c3b44e8b715e843a0db11ef6657c5b8fd755 @matzko committed Feb 6, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 zshfunctions/prompt_git_info
View
9 zshfunctions/prompt_git_info
@@ -1,6 +1,7 @@
if [ -n "$__CURRENT_GIT_BRANCH" ]; then
- local s="("
- s+="$__CURRENT_GIT_BRANCH"
+ local s=""
+ # s+="$__CURRENT_GIT_BRANCH"
+ s+=$(__git_ps1)
case "$__CURRENT_GIT_BRANCH_STATUS" in
ahead)
s+="↑"
@@ -15,7 +16,7 @@ if [ -n "$__CURRENT_GIT_BRANCH" ]; then
if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then
s+="⚡"
fi
- s+=")"
+ s+=""
printf " %s%s" "%{${fg[yellow]}%}" $s
-fi
+fi

0 comments on commit 5fc6c3b

Please sign in to comment.
Something went wrong with that request. Please try again.