From ca5f2c7f28a8791cb73236b4471f08d069b7fd15 Mon Sep 17 00:00:00 2001 From: Marcin Sztolcman Date: Fri, 7 Jun 2013 10:59:05 +0200 Subject: [PATCH] use __GIT_STATUS_CMD instead of __GIT_PROMPT_DIR --- gitprompt.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gitprompt.sh b/gitprompt.sh index 84791fa..a5be8f3 100644 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -1,6 +1,6 @@ -if [ "x$__GIT_PROMPT_DIR" == "x" ] +if [ "x$__GIT_STATUS_CMD" == "x" ] then - __GIT_PROMPT_DIR=~/.bash + __GIT_STATUS_CMD=~/.bash/gitstatus.py fi # Colors @@ -44,9 +44,8 @@ PROMPT_END=" \n$WHITE$Time12a$ResetColor $ " function update_current_git_vars() { unset __CURRENT_GIT_STATUS - local gitstatus="${__GIT_PROMPT_DIR}/gitstatus.py" - _GIT_STATUS=$(python $gitstatus) + _GIT_STATUS=$(python $__GIT_STATUS_CMD) __CURRENT_GIT_STATUS=($_GIT_STATUS) GIT_BRANCH=${__CURRENT_GIT_STATUS[0]} GIT_REMOTE=${__CURRENT_GIT_STATUS[1]}