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) "
|
/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')" ]
|
||||||
|
|
Loading…
Reference in a new issue