diff --git a/dot_bashrc.tmpl b/dot_bashrc.tmpl index 2749409..4af1f8b 100644 --- a/dot_bashrc.tmpl +++ b/dot_bashrc.tmpl @@ -15,3 +15,13 @@ if [ -d "$HOME/.config/bash" ]; then done fi unset rc + +if which direnv > /dev/null 2>&1 ; then + eval "$(direnv hook bash)" +fi + +if which zoxide > /dev/null 2>&1 ; then + eval "$(zoxide init bash)" + # shellcheck disable=SC2139 + alias z="$(which zoxide)" +fi diff --git a/dot_config/bash/direnv.sh b/dot_config/bash/direnv.sh deleted file mode 100644 index 565da5e..0000000 --- a/dot_config/bash/direnv.sh +++ /dev/null @@ -1,3 +0,0 @@ -if which direnv > /dev/null 2>&1 ; then - eval "$(direnv hook bash)" -fi diff --git a/dot_config/bash/zoxide.sh b/dot_config/bash/zoxide.sh deleted file mode 100644 index 1b49b91..0000000 --- a/dot_config/bash/zoxide.sh +++ /dev/null @@ -1,5 +0,0 @@ -if which zoxide > /dev/null 2>&1 ; then - eval "$(zoxide init bash)" - # shellcheck disable=SC2139 - alias z="$(which zoxide)" -fi