Install git-prompt to LWS directory

This commit is contained in:
Martin Blazik
2022-02-25 19:50:48 +01:00
parent 5cbf74bf7d
commit c9e6be90d8
2 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,7 @@
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
export GIT_PROMPT_PATH="$LWS/opt/bash-git-prompt"
GIT_PROMPT_INIT="$GIT_PROMPT_PATH/gitprompt.sh"
if [ -f "$GIT_PROMPT_INIT" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
source $HOME/.bash-git-prompt/gitprompt.sh
source "$GIT_PROMPT_INIT"
fi