Browse Source

feat(helm): add aliases (#11361)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Mohammad Parvin 1 year ago
parent
commit
7ea8a93bb8
2 changed files with 15 additions and 1 deletions
  1. 10 1
      plugins/helm/README.md
  2. 5 0
      plugins/helm/helm.plugin.zsh

+ 10 - 1
plugins/helm/README.md

@@ -1,9 +1,18 @@
 # Helm plugin
 
-This plugin adds completion for [Helm](https://helm.sh/), the Kubernetes package manager.
+This plugin adds completion and aliases for [Helm](https://helm.sh/), the Kubernetes package manager.
 
 To use it, add `helm` to the plugins array in your zshrc file:
 
 ```zsh
 plugins=(... helm)
 ```
+
+## Aliases
+
+| Alias | Full command |
+| ----- | ------------ |
+| h     | helm         |
+| hin   | helm install |
+| hse   | helm search  |
+| hup   | helm upgrade |

+ 5 - 0
plugins/helm/helm.plugin.zsh

@@ -11,3 +11,8 @@ else
   source "$ZSH_CACHE_DIR/completions/_helm"
   helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null &|
 fi
+
+alias h='helm'
+alias hin='helm install'
+alias hse='helm search'
+alias hup='helm upgrade'