void-bash-installer/files/profile/append-path.sh
2021-04-18 18:41:12 +02:00

11 lines
163 B
Bash

appendpath () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
appendpath '${HOME}/.local/bin'