dblume commited on 2021-11-08 11:34:08
Showing 1 changed files, with 3 additions and 0 deletions.
... | ... |
@@ -12,6 +12,9 @@ if ! $(declare -F __git_ps1 >/dev/null); then |
12 | 12 |
. /usr/share/git-core/contrib/completion/git-prompt.sh |
13 | 13 |
elif [[ $(uname -s) == Darwin* ]] && [[ -f $(brew --prefix git)/etc/bash_completion.d/git-prompt.sh ]]; then |
14 | 14 |
. $(brew --prefix git)/etc/bash_completion.d/git-prompt.sh |
15 |
+ elif [[ -f $HOME/.git-prompt.sh ]]; then |
|
16 |
+ # wget -O ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh |
|
17 |
+ . $HOME/.git-prompt.sh |
|
15 | 18 |
fi |
16 | 19 |
|
17 | 20 |
# Still no __git_ps1? Fake it. |
18 | 21 |