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.

65 lines
1.4 KiB
Cheetah

#!/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 -}}
{{ if lookPath "rbenv" -}}
if [ "${RBENV_SHELL}" = "" ]; then
eval "$(rbenv init -)"
fi
{{ end -}}
{{ if and (lookPath "rvm") (stat (joinPath .chezmoi.homeDir ".rvm" "bin") ) -}}
if [[ ! "${PATH}" =~ ${HOME}/.rvm/bin ]]; then
export PATH="$PATH:$HOME/.rvm/bin"
fi
{{ end -}}
# vim: filetype=sh