Skip to content

Instantly share code, notes, and snippets.

@toschneck
Last active April 2, 2024 12:41
Show Gist options
  • Save toschneck/2df90c66e0f8d4c6567d69a36bfc5bcd to your computer and use it in GitHub Desktop.
Save toschneck/2df90c66e0f8d4c6567d69a36bfc5bcd 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/docker/v$(docker version --format '{{.Server.Version}}')/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!"
@mossad-zika
Copy link

dolboeb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment