Skip to content

Instantly share code, notes, and snippets.

@shanmuha
Forked from bradleybeddoes/docker.zsh
Last active July 4, 2017 22:36
Show Gist options
  • Save shanmuha/6c2592f58465e227c3ef669709c93cef to your computer and use it in GitHub Desktop.
Save shanmuha/6c2592f58465e227c3ef669709c93cef to your computer and use it in GitHub Desktop.
Docker completion for Zsh + prezto
$ docker run<tab>
-- no matches found --
$ curl -fLo ~/.zprezto/modules/completion/external/src/_docker https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/zsh/_docker
$ docker run<tab>
-- images --
0a89c74fff6c -- latest in bradleybeddoes/docker-whale
-- repositories --
bradleybeddoes/docker-whale
$ docker run bradleybeddoes/docker-whale:<tab>
$ docker run bradleybeddoes/docker-whale:latest
_______________________________________
/ Everyone is a genius. It's just that \
| some people are too stupid to realize |
\ it. /
---------------------------------------
\
\
\
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\______/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment