97e6989729efce1f091d02e0274392ed547b9bb4
- Author
- Carlo Sala <carlosalag@protonmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(helm): support completion for snap installs (#10723)
Diff
1diff --git a/plugins/helm/helm.plugin.zsh b/plugins/helm/helm.plugin.zsh
2index cadfa551a6a67852402d1621270ae51d8830106c..05bb19a44ff17c646596cee13571edf2649346c7 100644
3--- a/plugins/helm/helm.plugin.zsh
4+++ b/plugins/helm/helm.plugin.zsh
5@@ -14,9 +14,9 @@ command mkdir -p "$ZSH_CACHE_DIR/completions"
6 # If the completion file does not exist, generate it and then source it
7 # Otherwise, source it and regenerate in the background
8 if [[ ! -f "$ZSH_CACHE_DIR/completions/_helm" ]]; then
9- helm completion zsh >| "$ZSH_CACHE_DIR/completions/_helm"
10+ helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null
11 source "$ZSH_CACHE_DIR/completions/_helm"
12 else
13 source "$ZSH_CACHE_DIR/completions/_helm"
14- helm completion zsh >| "$ZSH_CACHE_DIR/completions/_helm" &|
15+ helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null &|
16 fi