From 7102719d5bcb11f394ae54b5606bcf6fe8d9fba9 Mon Sep 17 00:00:00 2001 From: ipatch Date: Thu, 29 Mar 2018 12:41:05 -0500 Subject: [PATCH] more terse solution for previous commit --- asdf.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asdf.fish b/asdf.fish index 172b1f63..09118ef3 100644 --- a/asdf.fish +++ b/asdf.fish @@ -5,7 +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 -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 +if not contains $asdf_dir/{bin,shims} $PATH +and test -d $asdf/{bin,shims} + set -gx PATH $asdf_dir/{bin,shims} $PATH end