asdf/asdf.fish
2018-08-11 15:37:56 +02:00

14 lines
283 B
Fish

#!/usr/bin/env fish
set -l asdf_data_dir (dirname (status -f))
# we get an ugly warning when setting the path if shims does not exist
mkdir -p $asdf_data_dir/shims
for x in $asdf_data_dir/{bin,shims}
if not contains $x $PATH
and test -d $x
set -gx PATH $x $PATH
end
end