|
@ -110,9 +110,13 @@ __prompt_command() { |
|
|
PS1+="${Blu}↑${ahead}" |
|
|
PS1+="${Blu}↑${ahead}" |
|
|
else |
|
|
else |
|
|
tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h')` |
|
|
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}" |
|
|
PS1+="${Gre}✔${R}|${Blu}${tag_release}" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
fi |
|
|
PS1+="${R}]" |
|
|
PS1+="${R}]" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|