From e227c3cda1dbeb39d2cbf94f3da730f3d416fe93 Mon Sep 17 00:00:00 2001 From: Gabe Durazo Date: Mon, 22 Jul 2019 07:42:48 -0500 Subject: [PATCH] Fix PATH spacing issue in asdf.fish --- asdf.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asdf.fish b/asdf.fish index 038178d1..1006fa0a 100644 --- a/asdf.fish +++ b/asdf.fish @@ -9,8 +9,8 @@ set -l asdf_data_dir ( set -l asdf_bin_dirs $ASDF_DIR/bin $ASDF_DIR/shims $asdf_data_dir/shims for x in $asdf_bin_dirs - if test -d $x - set PATH $x (echo $PATH | command xargs printf '%s\n' | command grep -v $x) + if test -d $x; and not contains $x $PATH + set PATH $x $PATH end end