From 8d8d2d77d3700a346a4dc9a1a53a45d0e2de7d29 Mon Sep 17 00:00:00 2001 From: vasayxtx Date: Fri, 24 Jun 2022 15:30:54 +0300 Subject: [PATCH] feat(linkerd): add plugin for Linkerd CLI --- plugins/linkerd/README.md | 9 +++++++++ plugins/linkerd/linkerd.plugin.zsh | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 plugins/linkerd/README.md create mode 100644 plugins/linkerd/linkerd.plugin.zsh 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