aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc.d/prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc.d/prompt.zsh')
-rw-r--r--zsh/zshrc.d/prompt.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh
index a22739d3..cfac7ffd 100644
--- a/zsh/zshrc.d/prompt.zsh
+++ b/zsh/zshrc.d/prompt.zsh
@@ -67,7 +67,7 @@ prompt() {
git describe --tags --exact-match HEAD ||
git rev-parse --short HEAD
) || return
- name=${name##*/}
+ name=${name#refs/*/}
[[ -n $name ]] || return
# Check various files in .git to flag processes