Why are my Homebrew bash completion paths suddenly missing?
Asked Answered
P

1

0

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
Penutian answered 19/9, 2016 at 12:56 Comment(0)
P
0

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

Penutian answered 22/9, 2016 at 14:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.