Fix incorrectly named variable in gitprompt

This commit is contained in:
Talia 2021-02-18 10:42:32 +01:00
parent de65e6a7fd
commit 926a35baf3

View file

@ -83,7 +83,7 @@ gitprompt () {
/bin/echo -ne "${purple}$(basename $top) " /bin/echo -ne "${purple}$(basename $top) "
# BRANCH # BRANCH
if [ -z "$branch" ] if [ -z "$git_branch" ]
then then
head=$(git rev-parse --short HEAD 2>&1) head=$(git rev-parse --short HEAD 2>&1)
if [ "$(echo "$head" | grep '^fatal')" ] if [ "$(echo "$head" | grep '^fatal')" ]