diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,10 +97,10 @@ prompt_command_notitle () { local fullbranch="$(cat .git/HEAD 2>/dev/null)" if [ "$fullbranch" = "" ]; then - local fullbranch="ref: $(git symbolic-ref HEAD 2>/dev/null)" + local fullbranch="$(git symbolic-ref HEAD 2>/dev/null)" fi - local branch="${fullbranch#ref: refs/heads/}" - vcsinfo="${branch:+#$branch}" + local branch="${fullbranch##ref: }" + vcsinfo="${branch:+#${branch##refs/heads/}}" } prompt_command () { |