diff options
-rw-r--r-- | sh/shrc.d/path.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sh/shrc.d/path.sh b/sh/shrc.d/path.sh index 0b9e7e94..81823395 100644 --- a/sh/shrc.d/path.sh +++ b/sh/shrc.d/path.sh @@ -49,8 +49,7 @@ path() { return 1 fi PATH=$( - # shellcheck disable=SC2031 - path=:$path: + path=:$PATH: path=${path%%:"$2":*}:${path#*:"$2":} path=${path#:} path=${path%:} |