自从我最新的Homebrew更新后,我尝试按照以往的方式设置路径完成时突然收到以下警告,并使用命令(在我的bash_profile
中),例如
source $(brew --repository)/etc/bash_completion.d/git-completion.bash
自上次工作以来我唯一做的就是brew update && echo; brew upgrade --all
。
如何修复此错误并恢复对路径完成的访问权限。为什么会导致这种情况发生。
-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
更新:在最新brew update && echo; brew upgrade --all
之后我现在
-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