From 3ad9c38b697c41e05c613cd2f603593e488e3f39 Mon Sep 17 00:00:00 2001 From: xtex Date: Mon, 1 Jan 2024 07:54:28 +0800 Subject: [PATCH] Keep SDKMAN_DIR from environment variables --- conf.d/sdk.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.d/sdk.fish b/conf.d/sdk.fish index 91677cb..a8b25ac 100644 --- a/conf.d/sdk.fish +++ b/conf.d/sdk.fish @@ -10,7 +10,7 @@ # Account for custom install locations if set -q __sdkman_custom_dir set -gx SDKMAN_DIR "$__sdkman_custom_dir" -else +else if not set -q SDKMAN_DIR # This is the default location: set -gx SDKMAN_DIR "$HOME/.sdkman" end