summaryrefslogtreecommitdiff
path: root/plugins/helm
diff options
context:
space:
mode:
authorMohammad Parvin <m.parvin986@gmail.com>2022-12-02 16:19:00 +0330
committerGitHub <noreply@github.com>2022-12-02 13:49:00 +0100
commit7ea8a93bb8fb04a070960048aa0b5dca639456a8 (patch)
tree1ba9b7d9c7596937647dd56baf6bd1a4b658ac06 /plugins/helm
parentfc44c49cca9d5e499097392d3f42b1375d0253ba (diff)
downloadzsh-7ea8a93bb8fb04a070960048aa0b5dca639456a8.tar.gz
zsh-7ea8a93bb8fb04a070960048aa0b5dca639456a8.tar.bz2
zsh-7ea8a93bb8fb04a070960048aa0b5dca639456a8.zip
feat(helm): add aliases (#11361)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diffstat (limited to 'plugins/helm')
-rw-r--r--plugins/helm/README.md11
-rw-r--r--plugins/helm/helm.plugin.zsh5
2 files changed, 15 insertions, 1 deletions
diff --git a/plugins/helm/README.md b/plugins/helm/README.md
index 49844c78f..8be024bfb 100644
--- a/plugins/helm/README.md
+++ b/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 |
diff --git a/plugins/helm/helm.plugin.zsh b/plugins/helm/helm.plugin.zsh
index 151c43d88..7fc05be98 100644
--- a/plugins/helm/helm.plugin.zsh
+++ b/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'