Add helm shell completion
parent
ff0a131e55
commit
8f19a7016b
@ -1,6 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck disable=1090
|
||||
# vi: ft=bash
|
||||
|
||||
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
||||
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
||||
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
|
||||
# shellcheck disable=SC1090,SC2039
|
||||
|
||||
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