Why are my Homebrew bash completion paths suddenly missing?

左心房为你撑大大i 提交于 2019-12-12 02:35:55

问题


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:


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



来源:https://stackoverflow.com/questions/39573787/why-are-my-homebrew-bash-completion-paths-suddenly-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!