Fix incorrectly named variable in gitprompt

This commit is contained in:
Talia 2021-02-18 10:42:32 +01:00
parent de65e6a7fd
commit 926a35baf3
1 changed files with 1 additions and 1 deletions

View File

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