From 3ce078c0bec8283f07c5a2775c7a796f45876595 Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Sun, 29 May 2022 14:30:38 +0200 Subject: [PATCH] Improve git-prompt init script --- rc.local/gitprompt.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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"