mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
12 lines
278 B
Fish
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
|