mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 09:58:47 -07:00
feat(linkerd): add plugin for Linkerd CLI
This commit is contained in:
parent
4c82a2eedf
commit
8d8d2d77d3
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 New Issue
Block a user