guard asdf loading in .zshrc : no more errors when it is not installed
Generated by Mistral Vibe.
This commit is contained in:
+4
-2
@@ -189,8 +189,10 @@ export NVM_DIR="$HOME/.nvm"
|
|||||||
# its shims, which redirect each tool to the version chosen per project
|
# its shims, which redirect each tool to the version chosen per project
|
||||||
|
|
||||||
# load asdf for every new zsh session
|
# load asdf for every new zsh session
|
||||||
. "$HOME/.asdf/asdf.sh"
|
# (guarded like nvm : sources it only if installed, otherwise it would
|
||||||
. "$HOME/.asdf/completions/asdf.bash"
|
# 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
|
# openJDK
|
||||||
|
|||||||
Reference in New Issue
Block a user