Fix incorrectly named variable in gitprompt
This commit is contained in:
parent
de65e6a7fd
commit
926a35baf3
1 changed files with 1 additions and 1 deletions
|
@ -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')" ]
|
||||
|
|
Loading…
Reference in a new issue