Completions for Docker in the fish shell, based on docker-fish-completion.
-
Docker contrib completions (docker and docker-compose): These are generated by docker-fish-completion, and the Ruby script is substantially more accurate. Also, the docker-compose completions are a fraction of what can be discovered.
-
lewisacidic/fish-docker: In addition to using the Docker contrib completions, but also adds a number of additional helper functions that aren't wanted by this author.
If these functions are desired, but more accurate completions are required, ensure that
halostatue/fish-docker
is added by Fisher afterlewisacidic/fish-docker
(it should be later in yourfish_plugins
file).
Install with Fisher (recommended):
fisher install halostatue/fish-docker@1.x
Not using a package manager?
Copy completions/*.fish
and conf.d/*.fish
to your fish configuration
directory preserving the directory structure.
Ported from the Python script in docker-fish-completion to Ruby, fixing some bugs along the way. This should be considered the initial version of the script, as it does what the Python version did and no more. The plans are to simplify the generation process further so that the completions are more readily updated in place, and that commands that themselves have subcommands can be handled.
It has been tested with Ruby 2.7.
A Makefile
has been added to make building this easier.
make
# OR
make docker
make docker-compose
# OR
./gen_completions.rb docker > completions/docker.fish
./gen_completions.rb docker-compose > completions/docker-compose.fish