From f1994772caa459d69769f47048b533b8556229ba Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 24 Apr 2024 15:09:03 +0200 Subject: [PATCH] fix: zsh: check whether asdf-direnv exists --- .zshrc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 #