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

Most upvoted comments

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:

I’ve opened #5625 https://github.com/Homebrew/brew/pull/5625 to improve these instructions. Let me know what you all think.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Homebrew/brew/issues/5610#issuecomment-457919527, or mute the thread https://github.com/notifications/unsubscribe-auth/AMhAT2MH47Vk7n3kNC7PDQIR8fcCotZAks5vHa5vgaJpZM4aTDaB .