mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 14:20:08 +00:00
feat(linkerd): add plugin for Linkerd CLI
This commit is contained in:
parent
4c82a2eedf
commit
8d8d2d77d3
2 changed files with 13 additions and 0 deletions
9
plugins/linkerd/README.md
Normal file
9
plugins/linkerd/README.md
Normal file
|
@ -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)
|
||||
```
|
4
plugins/linkerd/linkerd.plugin.zsh
Normal file
4
plugins/linkerd/linkerd.plugin.zsh
Normal file
|
@ -0,0 +1,4 @@
|
|||
if (( $+commands[linkerd] )); then
|
||||
source <(linkerd completion zsh)
|
||||
compdef _linkerd linkerd
|
||||
fi
|
Loading…
Reference in a new issue