mirror of https://github.com/docker/docs.git
updating bash_profile
consolidating some useful information. The following lines have to be added to the ~/.bash_profile for it to work. I pulled this information from https://docs.docker.com/compose/completion/. I thought it would be useful to add it here so that all this info could be in one place. if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi
This commit is contained in:
parent
23a40e96b0
commit
91ea932ae6
|
|
@ -460,6 +460,14 @@ ln -s $etc/docker-machine.bash-completion $(brew --prefix)/etc/bash_completion.d
|
|||
ln -s $etc/docker-compose.bash-completion $(brew --prefix)/etc/bash_completion.d/docker-compose
|
||||
```
|
||||
|
||||
Add the following to your `~/.bash_profile`:
|
||||
|
||||
```shell
|
||||
if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
||||
. $(brew --prefix)/etc/bash_completion
|
||||
fi
|
||||
```
|
||||
|
||||
### Zsh
|
||||
|
||||
In Zsh, the [completion system](http://zsh.sourceforge.net/Doc/Release/Completion-System.html){:target="_blank" class="_"}
|
||||
|
|
|
|||
Loading…
Reference in New Issue