diff --git a/bash.bashrc b/bash.bashrc index 8826283..3c2dc02 100644 --- a/bash.bashrc +++ b/bash.bashrc @@ -108,7 +108,7 @@ __prompt_command() { PS1+=" ${R}[${Mag}${branch}${R}|" #local tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h') 2> /dev/null` - local tag_release=$(git describe --tags | cut -d'-' -f1) + local tag_release=$(git describe --tags 2&>1 | cut -d'-' -f1) local dirty=$(git status -s | wc -l) if [[ $dirty -ne 0 ]]; then PS1+="⚡|${tag_release}${Yel}…$dirty"