Update bash completion steps and add MacPorts steps (#2910)

This commit is contained in:
Jarrod Pooler 2017-04-20 11:44:20 -05:00 committed by Misty Stanley-Jones
parent 6afa8b7879
commit 9c4f7e09af
1 changed files with 18 additions and 1 deletions

View File

@ -18,7 +18,24 @@ Place the completion script in `/etc/bash_completion.d/` (`/usr/local/etc/bash_c
curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
Completion will be available upon next login.
Then add the following to your `~/.bash_profile`
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
You can source your `~/.bash_profile` or launch a new terminal to utilize completion.
## MacPorts Bash Completion
If you're using MacPorts you'll need to slightly modify your steps to the following
Run `sudo port install bash-completion` to install bash completion
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
You can source your `~/.bash_profile` or launch a new terminal to utilize completion.
### Zsh