mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
add a more robust check for bins
in shims
dir for fish shell users
This commit is contained in:
parent
68b6b1532c
commit
b6bc0b01ad
@ -5,4 +5,7 @@ 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
|
||||
|
||||
set -xg PATH $asdf_dir/bin $asdf_dir/shims $PATH
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user