asdf/asdf.fish
2018-03-29 12:41:05 -05:00

12 lines
278 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,shims} $PATH
and test -d $asdf/{bin,shims}
set -gx PATH $asdf_dir/{bin,shims} $PATH
end