11 lines
162 B
Bash
11 lines
162 B
Bash
appendpath () {
|
|
case ":$PATH:" in
|
|
*:"$1":*)
|
|
;;
|
|
*)
|
|
PATH="${PATH:+$PATH:}$1"
|
|
esac
|
|
}
|
|
|
|
appendpath '${HOME}/local/bin'
|