Better loading of git-prompt
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
export GIT_PROMPT_PATH="$LWS/opt/bash-git-prompt"
|
if [ -d "$HOME/.bash-git-prompt" ]; then
|
||||||
|
GIT_PROMPT_PATH="$HOME/.bash-git-prompt"
|
||||||
|
else
|
||||||
|
GIT_PROMPT_PATH="$LWS/opt/bash-git-prompt"
|
||||||
|
fi
|
||||||
|
|
||||||
GIT_PROMPT_INIT="$GIT_PROMPT_PATH/gitprompt.sh"
|
GIT_PROMPT_INIT="$GIT_PROMPT_PATH/gitprompt.sh"
|
||||||
|
|
||||||
if [ -f "$GIT_PROMPT_INIT" ]; then
|
if [ -f "$GIT_PROMPT_INIT" ]; then
|
||||||
|
export GIT_PROMPT_PATH
|
||||||
GIT_PROMPT_ONLY_IN_REPO=1
|
GIT_PROMPT_ONLY_IN_REPO=1
|
||||||
source "$GIT_PROMPT_INIT"
|
source "$GIT_PROMPT_INIT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user