summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2015-02-15 13:05:44 -0500
committerJune McEnroe <programble@gmail.com>2015-02-15 13:05:44 -0500
commit4b811633dc54c40dd55b91519141b67385647985 (patch)
tree1a49e4258f95d2aac56ece0daaae0017b497ed8d /.zshrc
parentClean up (diff)
downloadsrc-4b811633dc54c40dd55b91519141b67385647985.tar.gz
src-4b811633dc54c40dd55b91519141b67385647985.zip
Fix git prompt for branches with slashes
Diffstat (limited to '')
-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}"