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