summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 06270b05..a16ceeca 100644
--- a/.zshrc
+++ b/.zshrc
@@ -29,7 +29,7 @@ _prompt_git_branch() {
   read head < .git/HEAD
   case "$head" in
     ref:*)
-      echo ":${head##*/}"
+      echo ":${head#*/*/}"
       ;;
     *)
       echo ":${head:0:7}"