diff --git a/plugins/linkerd/README.md b/plugins/linkerd/README.md new file mode 100644 index 000000000..e2e85fb62 --- /dev/null +++ b/plugins/linkerd/README.md @@ -0,0 +1,9 @@ +# Linkerd plugin + +This plugin adds completion for linkerd command-line tool that is used for interacting with the [Linkerd](https://linkerd.io) service mesh. + +To use it, add `linkerd` to the plugins array in your zshrc file: + +```zsh +plugins=(... linkerd) +``` diff --git a/plugins/linkerd/linkerd.plugin.zsh b/plugins/linkerd/linkerd.plugin.zsh new file mode 100644 index 000000000..296ec90d6 --- /dev/null +++ b/plugins/linkerd/linkerd.plugin.zsh @@ -0,0 +1,4 @@ +if (( $+commands[linkerd] )); then + source <(linkerd completion zsh) + compdef _linkerd linkerd +fi