diff --git a/rc.local/gitprompt.sh b/rc.local/gitprompt.sh index 79099a5..45e090c 100644 --- a/rc.local/gitprompt.sh +++ b/rc.local/gitprompt.sh @@ -1,7 +1,3 @@ GIT_PROMPT_INIT="$HOME/.bash-git-prompt/gitprompt.sh" - -if [ -e "$GIT_PROMPT_INIT" ]; then - GIT_PROMPT_ONLY_IN_REPO=1 - source "$GIT_PROMPT_INIT" -fi - +GIT_PROMPT_ONLY_IN_REPO=1 +source_try "$GIT_PROMPT_INIT"