Improve git-prompt init script
This commit is contained in:
@@ -1,7 +1,3 @@
|
|||||||
GIT_PROMPT_INIT="$HOME/.bash-git-prompt/gitprompt.sh"
|
GIT_PROMPT_INIT="$HOME/.bash-git-prompt/gitprompt.sh"
|
||||||
|
GIT_PROMPT_ONLY_IN_REPO=1
|
||||||
if [ -e "$GIT_PROMPT_INIT" ]; then
|
source_try "$GIT_PROMPT_INIT"
|
||||||
GIT_PROMPT_ONLY_IN_REPO=1
|
|
||||||
source "$GIT_PROMPT_INIT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user