I'm trying to enable autocompletion of my homebrew commands. Homebrew automatically creates the folder
bash_completion.d and sym-links all completion files there.
$ ls -a `brew --prefix`/etc/bash_completion.d/ . .. brew_bash_completion.sh git-completion.bash
As you can see I have completions for
git. So I try to run the files:
[ -d `brew --prefix`/etc/bash_completion.d ] && source `brew --prefix`/etc/bash_completion.d/*
This is in my
~/.bash_profile, and I'm expecting this to source all the files in
bash_completion.d. When I try it out later in the terminal, only the completion for
Is there something I'm missing?