This provides tab completion for docker in xonsh.
This got born from a problem with the official bash completion for docker in xonsh. This script tries to use the docker api as much as possible. Its far from perfect and kind of alphaish. Im happy for every idea and pull request.
All arguments and commands for docker version 1.10.
pip install xonsh-docker-tabcomplete
or
pip install git+https://github.com/xsteadfastx/xonsh-docker-tabcomplete.git
Put xontrib load docker_tabcomplete
in your ~/.xonshrc
.
These are the environment variables that can be used to configurate the docker tabcompletion:
DOCKER_BASE_URL
: The base url docker-py needs to connect. It defaults tounix://var/run/docker.sock
.