Skip to content

Commit

Permalink
make sure the shims folder is appended to path only once
Browse files Browse the repository at this point in the history
  • Loading branch information
vscncls committed Aug 11, 2020
1 parent cc929d2 commit 22d79ae
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions asdf.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 22d79ae

Please sign in to comment.