Browse Source

when no tag release found

master
pvincent 5 years ago
parent
commit
70e5122a1f
  1. 4
      bash.bashrc

4
bash.bashrc

@ -110,9 +110,13 @@ __prompt_command() {
PS1+="${Blu}↑${ahead}"
else
tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h')`
if [[ -z $tag_release ]];then
PS1+="{Red}✔"
else
PS1+="${Gre}✔${R}|${Blu}${tag_release}"
fi
fi
fi
PS1+="${R}]"
fi
fi

Loading…
Cancel
Save