diff --git a/.zshrc b/.zshrc index 16abf4f..d30fa86 100644 --- a/.zshrc +++ b/.zshrc @@ -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 #