summary refs log tree commit diff
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
parentClean up (diff)
downloadsrc-330ae8299fb157acf587cd96bc71276d761f204d.tar.gz
src-330ae8299fb157acf587cd96bc71276d761f204d.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}"
>2012-01-22Add GundoJune McEnroe 2012-01-22Add Jellybeans colorschemeJune McEnroe 2012-01-22Add syntasticJune McEnroe 2012-01-21Add PowerlineJune McEnroe 2012-01-21Add quicktaskJune McEnroe 2012-01-15Moved comments out of mapsJune McEnroe 2012-01-14Disable scrollbarsJune McEnroe