Add helm shell completion
parent
ff0a131e55
commit
8f19a7016b
@ -1,6 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
# vi: ft=bash
|
||||||
# shellcheck disable=1090
|
|
||||||
|
|
||||||
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
||||||
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v kubectl > /dev/null 2>&1; then
|
||||||
|
source <(kubectl completion bash)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v helm > /dev/null 2>&1; then
|
||||||
|
source <(helm completion bash)
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
# vim: ft=sh
|
||||||
|
if command -v helm > /dev/null 2>&1; then
|
||||||
|
eval "$(helm completion fish)"
|
||||||
|
fi
|
@ -1,5 +1,13 @@
|
|||||||
# shellcheck disable=SC2148
|
# shellcheck disable=SC2148,SC1090
|
||||||
|
|
||||||
autoload -U +X compinit && compinit
|
autoload -U +X compinit && compinit
|
||||||
# shellcheck disable=SC1090,SC2039
|
|
||||||
source <(kubectl completion zsh)
|
if command -v kubectl > /dev/null 2>&1; then
|
||||||
|
source <(kubectl completion zsh)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command -v helm > /dev/null 2>&1 ; then
|
||||||
|
source <(helm completion zsh)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# vim: ft=bash
|
||||||
|
Loading…
Reference in New Issue