diff --git a/config_files/.zshrc b/config_files/.zshrc index c691f39..5953e9c 100644 --- a/config_files/.zshrc +++ b/config_files/.zshrc @@ -189,8 +189,10 @@ export NVM_DIR="$HOME/.nvm" # its shims, which redirect each tool to the version chosen per project # load asdf for every new zsh session -. "$HOME/.asdf/asdf.sh" -. "$HOME/.asdf/completions/asdf.bash" +# (guarded like nvm : sources it only if installed, otherwise it would +# print an error in every new shell) +[ -s "$HOME/.asdf/asdf.sh" ] && . "$HOME/.asdf/asdf.sh" +[ -s "$HOME/.asdf/completions/asdf.bash" ] && . "$HOME/.asdf/completions/asdf.bash" # --------------------------------------------------------------------- # openJDK