|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
{{ if stat "/etc/bash_completion" -}}
|
|
|
|
source /etc/bash_completion
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if stat "/usr/local/etc/bash_completion" -}}
|
|
|
|
source /usr/local/etc/bash_completion
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if stat "/usr/local/etc/bash_completion.d/" -}}
|
|
|
|
for i in $(ls /usr/local/etc/bash_completion.d/); do
|
|
|
|
if [ -r "/usr/local/etc/bash_completion.d/$i" ]; then
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
source "/usr/local/etc/bash_completion.d/$i"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
unset i
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "brew" -}}
|
|
|
|
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
|
|
|
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
|
|
|
fi
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "direnv" -}}
|
|
|
|
eval "$(direnv hook bash)"
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "erd" -}}
|
|
|
|
eval "$(erd --completions bash)"
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "helm" -}}
|
|
|
|
source <(helm completion bash)
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "kubectl" -}}
|
|
|
|
source <(kubectl completion bash)
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "starship" -}}
|
|
|
|
source <(starship init bash)
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ if lookPath "trubka" -}}
|
|
|
|
eval "$(trubka --completion-script-bash)"
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
# vim: filetype=bash
|