eval cannot be sourced, it must be executed

main
Andrew Coleman 2022-06-30 09:48:37 -04:00
parent cdeb94a9e4
commit a3c339b821
3 changed files with 10 additions and 8 deletions

View File

@ -15,3 +15,13 @@ if [ -d "$HOME/.config/bash" ]; then
done done
fi fi
unset rc 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

View File

@ -1,3 +0,0 @@
if which direnv > /dev/null 2>&1 ; then
eval "$(direnv hook bash)"
fi

View File

@ -1,5 +0,0 @@
if which zoxide > /dev/null 2>&1 ; then
eval "$(zoxide init bash)"
# shellcheck disable=SC2139
alias z="$(which zoxide)"
fi