more terse solution for previous commit

This commit is contained in:
ipatch 2018-03-29 12:41:05 -05:00
parent b6bc0b01ad
commit 7102719d5b

View File

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