Load bash-completion2 on macOS

This is required for projects completion, otherwise you get this error:
```
_init_completion: command not found
```
pull/843/head
George Wyatt 2016-11-25 13:51:25 +08:00
parent bbc83d8af5
commit 971f911101
1 changed files with 5 additions and 0 deletions

View File

@ -13,4 +13,9 @@ if [ $(uname) = "Darwin" ] && command -v brew &>/dev/null ; then
if [ -f "$BREW_PREFIX"/etc/bash_completion ]; then
. "$BREW_PREFIX"/etc/bash_completion
fi
# homebrew/versions/bash-completion2 (required for projects.completion.bash) is installed to this path
if [ -f "$BREW_PREFIX"/share/bash-completion/bash_completion ]; then
. "$BREW_PREFIX"/share/bash-completion/bash_completion
fi
fi