Bash Completion in OsX.

The author cannot live without shell, neither without bash completion.

There is an official tap with completion scripts which can be installed for tools like docker.

To start with, let’s install bash-completion (HomeBrew for OsX is needed, follow link for installation instructions) and then tap homebrew/completion to gain access to these additional formulae:

$ brew install bash-completion
$ brew tap homebrew/completions

After running the first command, in typical brew isntallation, it is mandatory to add following instructions to ~/.bash_profile :

if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi

Now it is possible to use Bash Completion and install additional completion scripts from tapped repository.


Comments are closed.