Why are my Homebrew bash completion paths suddenly

2019-09-14 21:45发布

Since my latest update of Homebrew, I'm suddenly getting the warnings below when attempting to set up path completion as I have always done, with commands (in my bash_profile) such as

source $(brew --repository)/etc/bash_completion.d/git-completion.bash

The only thing I've done since this last worked is run brew update && echo; brew upgrade --all.

How do I fix this error and restore access to my path completions. Why caused this to happen.


-bash: /usr/local/Homebrew/etc/bash_completion.d/git-completion.bash: No such file or directory
-bash: /usr/local/Homebrew/etc/bash_completion.d/git-prompt.sh: No such file or directory
-bash: /usr/local/Homebrew/bin/eb_completion.bash: No such file or directory
-bash: /usr/local/Homebrew/etc/bash_completion.d/cabal: No such file or directory
-bash: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc: No such file or directory
-bash: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc: No such file or directory

UPDATE: After the latest brew update && echo; brew upgrade --all I now get

-bash: /usr/local/Homebrew/etc/bash_completion.d/git-completion.bash: No such file or directory
-bash: /usr/local/Homebrew/etc/bash_completion.d/git-prompt.sh: No such file or directory
-bash: /usr/local/Homebrew/bin/eb_completion.bash: No such file or directory
-bash: /usr/local/Homebrew/etc/bash_completion.d/cabal: No such file or directory

1条回答
Melony?
2楼-- · 2019-09-14 22:10

Change any entries that source Bash completions that say $(brew --repository) to (brew --prefix).

查看更多
登录 后发表回答