mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
14 lines
268 B
Fish
14 lines
268 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
|
|
|
|
for x in $asdf_dir/{bin,shims}
|
|
if not contains $x $PATH
|
|
and test -d $x
|
|
set -gx PATH $x $PATH
|
|
end
|
|
end
|