blend/blend.sh

14 lines
286 B
Bash
Raw Normal View History

2023-04-20 06:14:18 -05:00
# https://unix.stackexchange.com/a/217629
pathmunge () {
if ! echo "$PATH" | /bin/grep -Eq "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH="$PATH:$1"
else
PATH="$1:$PATH"
fi
fi
}
pathmunge "${HOME}/.local/bin/blend_bin"