asdf/asdf.fish

14 lines
268 B
Fish
Raw Normal View History

2016-04-18 00:33:14 -07:00
#!/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
for x in $asdf_dir/{bin,shims}
if not contains $x $PATH
and test -d $x
set -gx PATH $x $PATH
end
end