Browse Source

prompt release tag git

master 0.1.1
pvincent 5 years ago
parent
commit
32751c1860
  1. 3
      bash.bashrc

3
bash.bashrc

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

Loading…
Cancel
Save