Fix error in git prompt script

This commit is contained in:
Talia 2020-01-13 14:59:22 +01:00
parent 54b658e071
commit 29a11032c6

View file

@ -68,7 +68,7 @@ git__prompt () {
if [ -z "$branch" ]
then
head=$(git rev-parse --short HEAD 2>&1)
if [[ "$head" =~ fatal* ]]
if [ $(echo "$head" | grep '^fatal') ]
then
branch='{no commits}'
else