From 80740f9876ec67a7a712861418a5c5e07e32c24f Mon Sep 17 00:00:00 2001 From: jechol Date: Mon, 8 Apr 2019 17:11:13 +0900 Subject: [PATCH] Fix setting PATH to work with fish 2.2 --- asdf.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asdf.fish b/asdf.fish index 43d0ed90..038178d1 100644 --- a/asdf.fish +++ b/asdf.fish @@ -9,7 +9,9 @@ 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 - set PATH $x (string match -v $x $PATH) + if test -d $x + set PATH $x (echo $PATH | command xargs printf '%s\n' | command grep -v $x) + end end # Add function wrapper so we can export variables