Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save utarn/6965942b3818c33e05fae0c170a901fe to your computer and use it in GitHub Desktop.
Save utarn/6965942b3818c33e05fae0c170a901fe to your computer and use it in GitHub Desktop.
Install Docker and Docker-Compose bash completion
#!/usr/bin/env bash
set -e
echo "install docker bash completion"
curl -L https://raw.githubusercontent.com/docker/cli/v$(docker version --format '{{.Server.Version}}' | sed 's/-.*//')/contrib/completion/bash/docker -o /etc/bash_completion.d/docker
echo "install docker-compose bash completion"
sudo curl \
-L https://raw.githubusercontent.com/docker/compose/1.29.2/contrib/completion/bash/docker-compose \
-o /etc/bash_completion.d/docker-compose
echo ".... done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment