From 4b811633dc54c40dd55b91519141b67385647985 Mon Sep 17 00:00:00 2001 From: Curtis 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