aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc.d/prompt.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh
index d646c05f..858ec2ea 100644
--- a/zsh/zshrc.d/prompt.zsh
+++ b/zsh/zshrc.d/prompt.zsh
@@ -70,7 +70,8 @@ prompt() {
local name
name=$( {
git symbolic-ref --quiet HEAD ||
- git describe --all --always --exact-match HEAD
+ git describe --tags --exact-match HEAD ||
+ git rev-parse --short HEAD
} 2>/dev/null) || return
name=${name##*/}
[[ -n $name ]] || return