diff --git a/gitprompt.sh b/gitprompt.sh index f23a134..e3a735d 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -18,8 +18,7 @@ function async_run_zsh() { } -function git_prompt_dir() { - # assume the gitstatus.sh is in the same directory as this script +function set_git_prompt_dir() { # code thanks to http://stackoverflow.com/questions/59895 if [ -z "$__GIT_PROMPT_DIR" ]; then __GIT_PROMPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )