summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2015-02-15 13:05:44 -0500
committerJune McEnroe <june@causal.agency>2015-02-15 13:05:44 -0500
commit330ae8299fb157acf587cd96bc71276d761f204d (patch)
tree49ede7366c667d995f913c92078f13b96e99fb9d /.zshrc
parentClean up (diff)
downloadsrc-330ae8299fb157acf587cd96bc71276d761f204d.tar.gz
src-330ae8299fb157acf587cd96bc71276d761f204d.zip
Fix git prompt for branches with slashes
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}"