From 6fc4bb8fc650e73152ce326267f89df6865cdd24 Mon Sep 17 00:00:00 2001 From: Shane Liesegang Date: Thu, 21 Apr 2022 16:40:43 +0300 Subject: [PATCH] fix: make fish shell setup match other shells (#1209) The asdf.sh file only sets `ASDF_DIR` if it hasn't already been set. This change to the fish file has it do the same. --- asdf.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asdf.fish b/asdf.fish index 854bcf11a..e9d2a3b61 100644 --- a/asdf.fish +++ b/asdf.fish @@ -1,4 +1,6 @@ -set -x ASDF_DIR (dirname (status -f)) +if not set -q ASDF_DIR + set -x ASDF_DIR (dirname (status -f)) +end set -l asdf_user_shims ( if test -n "$ASDF_DATA_DIR"