From 936f5a1ca3896e8ef49ecacf1dedf0e981f9f999 Mon Sep 17 00:00:00 2001 From: Joseph Buiteweg Date: Wed, 29 Sep 2021 13:12:03 -0400 Subject: [PATCH] Keep path from growing by checking it bin dir exists - fish --- bin/autojump.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/autojump.fish b/bin/autojump.fish index e9955067..6a9246cc 100644 --- a/bin/autojump.fish +++ b/bin/autojump.fish @@ -2,7 +2,7 @@ set -gx AUTOJUMP_SOURCED 1 # set user installation path if test -d ~/.autojump - set -x PATH ~/.autojump/bin $PATH + contains ~/.autojump/bin $PATH or set -x PATH ~/.autojump/bin $PATH end # Set ostype, if not set