dblume commited on 2021-11-04 10:01:09
Showing 1 changed files, with 2 additions and 0 deletions.
... | ... |
@@ -10,6 +10,8 @@ if ! $(declare -F __git_ps1 >/dev/null); then |
10 | 10 |
. /usr/lib/git-core/git-sh-prompt |
11 | 11 |
elif [[ -e /usr/share/git-core/contrib/completion/git-prompt.sh ]]; then |
12 | 12 |
. /usr/share/git-core/contrib/completion/git-prompt.sh |
13 |
+ elif [[ $(uname -s) == Darwin* ]] && [[ -f $(brew --prefix git)/etc/bash_completion.d/git-prompt.sh ]]; then |
|
14 |
+ . $(brew --prefix git)/etc/bash_completion.d/git-prompt.sh |
|
13 | 15 |
fi |
14 | 16 |
|
15 | 17 |
# Still no __git_ps1? Fake it. |
16 | 18 |