.lib/sh/path.bash@5c37b939b296
.lib/sh/path.bash
Mon, 01 Jan 2024 14:42:03 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 01 Jan 2024 14:42:03 -0600
- changeset 1143
- 5c37b939b296
- parent 968
-
0db164e368c5
- permissions
- -rw-r--r--
skip luasnip/jsregexp build on windows
path-append() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
return 0
fi
return 1
}
path-prepend() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$1${PATH:+":$PATH"}"
return 0
fi
return 1
}