From 330ae8299fb157acf587cd96bc71276d761f204d Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 15 Feb 2015 13:05:44 -0500 Subject: Fix git prompt for branches with slashes --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- cgit 1.4.1