From 4b6213bf54d8135c6cb9f3d183113bc5df7a85ab Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sun, 4 Jun 2023 15:16:52 -0700 Subject: [PATCH] Move eval in bash completions --- dot_config/bash/bashrc.d/completion.sh.tmpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dot_config/bash/bashrc.d/completion.sh.tmpl b/dot_config/bash/bashrc.d/completion.sh.tmpl index aae88d8..ebd76a8 100644 --- a/dot_config/bash/bashrc.d/completion.sh.tmpl +++ b/dot_config/bash/bashrc.d/completion.sh.tmpl @@ -25,14 +25,6 @@ if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then 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 -}} @@ -45,6 +37,14 @@ source <(kubectl completion bash) source <(starship init bash) #{{ end -}} +#{{ if lookPath "direnv" -}} +eval "$(direnv hook bash)" +#{{ end -}} + +#{{ if lookPath "erd" -}} +eval "$(erd --completions bash)" +#{{ end -}} + #{{ if lookPath "trubka" -}} eval "$(trubka --completion-script-bash)" #{{ end -}} @@ -59,4 +59,4 @@ fi if [[ ! "${PATH}" =~ ${HOME}/.rvm/bin ]]; then export PATH="$PATH:$HOME/.rvm/bin" fi -#{{ end -}} +#{{- end }}