# 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