fix slow bash startup from overuse of brew --prefix

This commit is contained in:
Jeffrey Paul 2018-10-25 05:09:48 -07:00
parent dfd824a443
commit 97e2c31a47
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
if [ -f "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" ]; then
BGPPREFIX="$HOME/Library/Homebrew/opt/bash-git-prompt"
if [ -f "$BGPPREFIX/share/gitprompt.sh" ]; then
GIT_PROMPT_THEME=Default
GIT_PROMPT_ONLY_IN_REPO=1
source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh"
source "$BGPPREFIX/share/gitprompt.sh"
fi