brew: "Homebrew Shell Completion" instructions not working on macOS 10.14.2
I followed the bash instructions here: https://docs.brew.sh/Shell-Completion but kept getting the error
nuvemfs 🔥 source ~/.bash_profile
-bash: /usr/local/etc/bash_completion.d/*: No such file or directory
which isn’t so cool. Replacing it with
if type brew 2&>/dev/null; then
source "$(brew --prefix)/etc/bash_completion"
else
echo "run: brew install git bash-completion"
fi
works just fine however.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (22 by maintainers)
Commits related to this issue
- docs/Shell-Completion: read both types of bash completions. And guard against either of them being missing. Fixes #5610 — committed to MikeMcQuaid/brew by MikeMcQuaid 5 years ago
Great, thanks @maxim-belkin.
I’m traveling today. Will leave my comments as soon as I get back.
On Sun, Jan 27, 2019 at 7:49 AM Mike McQuaid notifications@github.com wrote: