fix: zsh: check whether asdf-direnv exists

This commit is contained in:
Michel 2024-04-24 15:09:03 +02:00
parent 8a8f11d07e
commit f1994772ca

15
.zshrc
View File

@ -49,12 +49,15 @@ typeset -U path fpath
### ASDF & direnv
#
# asdf plugin add direnv
# asdf install direnv latest
# asdf direnv setup --version latest
# asdf global direnv latest
#
source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc"
if [[ -e "${XDG_CONFIG_HOME}/asdf-direnv/zshrc" ]]; then
source "${XDG_CONFIG_HOME}/asdf-direnv/zshrc"
else
echo "asdf: direnv plugin not set!"
# asdf plugin add direnv
# asdf install direnv latest
# asdf direnv setup --version latest
# asdf global direnv latest
fi
### b4b4r07/enhancd
#