Skip to content

Instantly share code, notes, and snippets.

@morkot
Created August 16, 2017 14:26
Show Gist options
  • Save morkot/3c656f699407918c62a339a756269b56 to your computer and use it in GitHub Desktop.
Save morkot/3c656f699407918c62a339a756269b56 to your computer and use it in GitHub Desktop.
Docker completion for zsh with prezto

How-to activate completion for docker client in zsh and prezto

  • get zsh completion
curl -fLo ~/.zprezto/modules/completion/external/src/_docker \
https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker
  • activate completion plugin in .zpeztorc
zstyle ':prezto:load' pmodule \
...
  'completion' \
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment