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 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The link is dead, you can use this instead https://raw.githubusercontent.com/docker/cli/master/contrib/completion/bash/docker
bye