From 0d7a939934be3b56e3a2c4a40d0d27889ee47802 Mon Sep 17 00:00:00 2001 From: Lucas Vasconcelos Date: Wed, 12 Aug 2020 10:12:22 -0300 Subject: [PATCH] fix shims folder path --- asdf.fish | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/asdf.fish b/asdf.fish index f60d2cdf..eb33f090 100644 --- a/asdf.fish +++ b/asdf.fish @@ -1,10 +1,12 @@ set -x ASDF_DIR (dirname (status -f)) -if test -n $ASDF_DATA_DIR - set -l asdf_user_shims $ASDF_DATA_DIR/shims -else - set -l asdf_user_shims $HOME/.asdf -end +set -l asdf_user_shims ( + if test -n "$ASDF_DATA_DIR" + echo $ASDF_DATA_DIR/shims + else + echo $HOME/.asdf/shims + end +) # Add asdf to PATH set -l asdf_bin_dirs $ASDF_DIR/bin $asdf_user_shims