Forked from toschneck/install_docker_bash_completions.sh
Last active
March 9, 2022 16:29
-
-
Save hoshiyosan/e117535bd8e65967e607c4011fa64170 to your computer and use it in GitHub Desktop.
Install Docker and Docker-Compose bash completion
This file contains hidden or 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" | |
curl -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