asdf/asdf.fish

12 lines
310 B
Fish

#!/usr/bin/env fish
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
end