void-bash-installer/files/profile/append-path.sh

11 lines
163 B
Bash
Raw Normal View History

2021-04-18 14:46:33 +02:00
appendpath () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
2021-04-18 18:41:12 +02:00
appendpath '${HOME}/.local/bin'