From 32512ecc9dccccffe6b48b551f7ef2ed793ae0b1 Mon Sep 17 00:00:00 2001 From: jechol Date: Fri, 5 Apr 2019 14:35:35 +0900 Subject: [PATCH] Always prepend asdf_bin_dirs to PATH --- asdf.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/asdf.fish b/asdf.fish index 37127a30..43d0ed90 100644 --- a/asdf.fish +++ b/asdf.fish @@ -9,9 +9,7 @@ set -l asdf_data_dir ( set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims for x in $asdf_bin_dirs - if begin not contains $x $PATH; and test -d $x; end - set PATH $x $PATH - end + set PATH $x (string match -v $x $PATH) end # Add function wrapper so we can export variables