Forked from toschneck/install_docker_bash_completions.sh
Created
December 16, 2019 10:09
-
-
Save ptrm/71c745af6dcd0c4c49621dd48d65d1af 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 -f -L "https://raw.githubusercontent.com/docker/docker-ce/$(docker version --format '{{.Server.Version}}' | sed -E 's/((\.?[^.]+){2}).*/\1/')/components/cli/contrib/completion/bash/docker" -o /etc/bash_completion.d/docker | |
echo "install docker-compose bash completion" | |
curl -f -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/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