You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
Bash
53 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
{{ if stat "/etc/bash_completion" -}}
|
|
# shellcheck disable=SC1091
|
|
source /etc/bash_completion
|
|
{{- end }}
|
|
|
|
{{ if stat "/usr/local/etc/bash_completion" -}}
|
|
# shellcheck disable=SC1091
|
|
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" -}}
|
|
# vi: ft=bash
|
|
if command -v brew &> /dev/null; then
|
|
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
|
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
|
fi
|
|
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 }}
|
|
|
|
# vim: filetype=bash
|