From 6e3fe3c40ab9db7da4707ee4fc9bf3f5d96c0c1d Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 13 Mar 2021 20:38:29 +0400 Subject: [PATCH] no more 1 file from previous bug --- bash.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash.bashrc b/bash.bashrc index 3c2dc02..c27db36 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 2&>1 | cut -d'-' -f1) + local tag_release=$(git describe --tags >/dev/null 2>&1 | cut -d'-' -f1) local dirty=$(git status -s | wc -l) if [[ $dirty -ne 0 ]]; then PS1+="⚡|${tag_release}${Yel}…$dirty"