7ea8a93bb8fb04a070960048aa0b5dca639456a8
- Author
- Mohammad Parvin <m.parvin986@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(helm): add aliases (#11361)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diff
1diff --git a/plugins/helm/README.md b/plugins/helm/README.md
2index 49844c78ff9aa16956ad46a16f6757a1a827fb16..8be024bfb3376f42eba92e295700593d0421fe9a 100644
3--- a/plugins/helm/README.md
4+++ b/plugins/helm/README.md
5@@ -1,9 +1,18 @@
6 # Helm plugin
7
8-This plugin adds completion for [Helm](https://helm.sh/), the Kubernetes package manager.
9+This plugin adds completion and aliases for [Helm](https://helm.sh/), the Kubernetes package manager.
10
11 To use it, add `helm` to the plugins array in your zshrc file:
12
13 ```zsh
14 plugins=(... helm)
15 ```
16+
17+## Aliases
18+
19+| Alias | Full command |
20+| ----- | ------------ |
21+| h | helm |
22+| hin | helm install |
23+| hse | helm search |
24+| hup | helm upgrade |
25diff --git a/plugins/helm/helm.plugin.zsh b/plugins/helm/helm.plugin.zsh
26index 151c43d887b2fd6dd896cbe5957b0788cfb9cf42..7fc05be989943af8ba510ad8a9178fbb669ba5bb 100644
27--- a/plugins/helm/helm.plugin.zsh
28+++ b/plugins/helm/helm.plugin.zsh
29@@ -11,3 +11,8 @@ else
30 source "$ZSH_CACHE_DIR/completions/_helm"
31 helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null &|
32 fi
33+
34+alias h='helm'
35+alias hin='helm install'
36+alias hse='helm search'
37+alias hup='helm upgrade'