diff options
author | June McEnroe <june@causal.agency> | 2015-02-15 13:05:44 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2015-02-15 13:05:44 -0500 |
commit | 330ae8299fb157acf587cd96bc71276d761f204d (patch) | |
tree | 49ede7366c667d995f913c92078f13b96e99fb9d /.zshrc | |
parent | Clean up (diff) | |
download | src-330ae8299fb157acf587cd96bc71276d761f204d.tar.gz src-330ae8299fb157acf587cd96bc71276d761f204d.zip |
Fix git prompt for branches with slashes
Diffstat (limited to '')
-rw-r--r-- | .zshrc | 2 |
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}" |