Skip to content

Commit e227c3c

Browse files
authored
Fix PATH spacing issue in asdf.fish
1 parent ce01bcf commit e227c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asdf.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set -l asdf_data_dir (
99
set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims
1010

1111
for x in $asdf_bin_dirs
12-
if test -d $x
13-
set PATH $x (echo $PATH | command xargs printf '%s\n' | command grep -v $x)
12+
if test -d $x; and not contains $x $PATH
13+
set PATH $x $PATH
1414
end
1515
end
1616

0 commit comments

Comments
 (0)