mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
12 lines
310 B
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
|