Forked from toschneck/install_docker_bash_completions.sh
Last active
May 21, 2021 14:08
-
-
Save utarn/6965942b3818c33e05fae0c170a901fe to your computer and use it in GitHub Desktop.
Install Docker and Docker-Compose bash completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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