mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
make sure the shims folder is appended to path only once
This commit is contained in:
parent
cc929d2fdf
commit
22d79ae121
11
asdf.fish
11
asdf.fish
@ -1,10 +1,13 @@
|
||||
set -x ASDF_DIR (dirname (status -f))
|
||||
set -l asdf_data_dir (
|
||||
if test -n "$ASDF_DATA_DIR"; echo $ASDF_DATA_DIR;
|
||||
else; echo $HOME/.asdf; end)
|
||||
|
||||
if test -n $ASDF_DATA_DIR
|
||||
set -l asdf_user_shims $ASDF_DATA_DIR/shims
|
||||
else
|
||||
set -l asdf_user_shims $HOME/.asdf
|
||||
end
|
||||
|
||||
# Add asdf to PATH
|
||||
set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims
|
||||
set -l asdf_bin_dirs $ASDF_DIR/bin $asdf_user_shims
|
||||
|
||||
for x in $asdf_bin_dirs
|
||||
if test -d $x
|
||||
|
Loading…
Reference in New Issue
Block a user