diff --git a/bash/environment b/bash/environment index b6d6b2b..034d29e 100644 --- a/bash/environment +++ b/bash/environment @@ -36,6 +36,9 @@ fi function _add-path { dir="$1" + if [[ $PATH =~ .*$dir.* ]]; then + return + fi if [[ -d $dir ]]; then PATH=$dir:$PATH fi