add a more robust check for bins in shims dir for fish shell users

This commit is contained in:
ipatch 2018-03-28 23:49:40 -05:00
parent 68b6b1532c
commit b6bc0b01ad

View File

@ -5,4 +5,7 @@ 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
set -xg PATH $asdf_dir/bin $asdf_dir/shims $PATH
if not contains $asdf_dir/bin $asdf_dir/shims $PATH
and test -d $asdf/bin and test -d $asdf/shims
set -xg PATH $asdf_dir/bin $asdf_dir/shims $PATH
end