Talk is cheap

You just need to enable the plugin in ‘oh-my-zsh’

1
2
3
4
5
6
7
8
9
# Step 1
# mkdir && download the _docker file if there isn't existed in this path'~/.oh-my-zsh/plugins/docker/_docker'
curl -fLo ~/.oh-my-zsh/plugins/docker/_docker https://raw.github.com/felixr/docker-zsh-completion/master/_docker
# Step 2
# Enable the plug
# open ~/.zshrc and find line which is similar with plugins=(git osx autojump), then you need to add docker into that setting like this below.
plugins=(git osx autojump docker)
# Step 3
source ~/.zshrc

EOF
Enjoy