Last active
April 9, 2018 17:38
-
-
Save franciscocpg/a7c87d86696293b4e6d74ef5ee0a2c8e to your computer and use it in GitHub Desktop.
docker completion for CoreOS
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
# Run this as CoreOS user at home folder | |
set -e | |
toolbox dnf -y install bash-completion wget \ | |
&& toolbox wget https://raw.githubusercontent.com/docker/docker/master/contrib/completion/bash/docker -O /usr/share/bash-completion/completions/docker \ | |
&& toolbox cp /usr/share/bash-completion /media/root/var/ -R \ | |
&& source /var/bash-completion/bash_completion | |
cp $(readlink .bashrc) .bashrc.new && mv .bashrc.new .bashrc | |
echo "source /var/bash-completion/bash_completion" >> ~/.bashrc |
Hi,
The link is dead, you can use this instead https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker
bye
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For remote install use
bash <(curl -s https://gist.githubusercontent.com/franciscocpg/a7c87d86696293b4e6d74ef5ee0a2c8e/raw/)