diff --git a/zsh/apps/gitinfo.app.zsh b/zsh/apps/gitinfo.app.zsh index ffe8fb5..a26a414 100644 --- a/zsh/apps/gitinfo.app.zsh +++ b/zsh/apps/gitinfo.app.zsh @@ -69,7 +69,7 @@ function gitinfo_get_branch() GITINFO_BRANCH="" return 1 fi - GITINFO_BRANCH=`git branch | cut -d " " -f 2` + GITINFO_BRANCH=`git branch | grep "*" | cut -d " " -f 2` } ######################################################################