mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
feat(istioctl): add plugin for istioctl (#10410)
* Add plugin for istioctl completion. close #10405 * fix typo * Update README.md
This commit is contained in:
parent
08d086a09c
commit
a150d8a7c0
2 changed files with 13 additions and 0 deletions
9
plugins/istioctl/README.md
Normal file
9
plugins/istioctl/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Istioctl - Istio Command-line Tool
|
||||||
|
|
||||||
|
The [istioctl](https://istio.io/latest/docs/ops/diagnostic-tools/istioctl/) tool is a configuration command line utility that allows service operators to debug and diagnose their Istio service mesh deployments.
|
||||||
|
|
||||||
|
To use it, add `istioctl` to the plugins array of your zshrc file:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
plugins=(... istioctl)
|
||||||
|
```
|
4
plugins/istioctl/istioctl.plugin.zsh
Normal file
4
plugins/istioctl/istioctl.plugin.zsh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [ $commands[istioctl] ]; then
|
||||||
|
source <(istioctl completion zsh)
|
||||||
|
compdef _istioctl istioctl
|
||||||
|
fi
|
Loading…
Reference in a new issue