diff options
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 3b99cc12..39ee175b 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -105,7 +105,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 |