diff options
author | June McEnroe <programble@gmail.com> | 2015-02-15 13:05:44 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2015-02-15 13:05:44 -0500 |
commit | 4b811633dc54c40dd55b91519141b67385647985 (patch) | |
tree | 1a49e4258f95d2aac56ece0daaae0017b497ed8d | |
parent | Clean up (diff) | |
download | src-4b811633dc54c40dd55b91519141b67385647985.tar.gz src-4b811633dc54c40dd55b91519141b67385647985.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}" |