Skip to content

Instantly share code, notes, and snippets.

@cyberbikepunk
Created June 25, 2016 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberbikepunk/4d8309f2c06b51c9c996450803e5f3fb to your computer and use it in GitHub Desktop.
Save cyberbikepunk/4d8309f2c06b51c9c996450803e5f3fb to your computer and use it in GitHub Desktop.
As an alternative to implementing native zsh completion, you can also use zsh's bash completion compatibility mode. To use it, add
autoload bashcompinit
bashcompinit
eval "$(_FOO_BAR_COMPLETE=source foo-bar)"
to your .zshrc. The last line assumes your click script is called foo-bar; see the click docs for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment