From 3a4b9042e39549c1837a21bf8df4c67576340343 Mon Sep 17 00:00:00 2001 From: Sasha Friedenberg Date: Wed, 11 Jul 2018 13:14:30 -0400 Subject: [PATCH] Fix issue with Fish shell shim loading script --- asdf.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/asdf.fish b/asdf.fish index 09118ef3..569b7983 100644 --- a/asdf.fish +++ b/asdf.fish @@ -5,7 +5,9 @@ set -l asdf_dir (dirname (status -f)) # we get an ugly warning when setting the path if shims does not exist mkdir -p $asdf_dir/shims -if not contains $asdf_dir/{bin,shims} $PATH -and test -d $asdf/{bin,shims} - set -gx PATH $asdf_dir/{bin,shims} $PATH +for x in $asdf_dir/{bin,shims} + if not contains $x $PATH + and test -d $x + set -gx PATH $x $PATH + end end