mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
feat(linkerd): add plugin for Linkerd CLI
This commit is contained in:
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
|
||||||
Reference in New Issue
Block a user