Fix Docker auto Completion Install

This commit is contained in:
adphi 2018-04-23 11:03:49 +02:00
parent 7f629d5425
commit 14ff455982

View File

@ -17,6 +17,9 @@ base=https://github.com/docker/machine/releases/download/v0.14.0 &&
sudo install /tmp/docker-machine /usr/local/bin/docker-machine sudo install /tmp/docker-machine /usr/local/bin/docker-machine
echo "\nInstalling ZSH Docker Compose auto completion\n" echo "\nInstalling ZSH Docker Compose auto completion\n"
mkdir -p ~/.zsh/completion
curl -L https://raw.githubusercontent.com/docker/compose/1.21.0/contrib/completion/zsh/_docker-compose > ~/.zsh/completion/_docker-compose
curl -L https://raw.githubusercontent.com/docker/machine/v0.14.0/contrib/completion/zsh/_docker-machine > ~/.zsh/completion/_docker-machine
echo "fpath=(~/.zsh/completion $fpath)" >> ~/.zshrc echo "fpath=(~/.zsh/completion $fpath)" >> ~/.zshrc
echo "autoload -Uz compinit && compinit -i" >> ~/.zshrc echo "autoload -Uz compinit && compinit -i" >> ~/.zshrc