blob: 104fba48937158bf782175ee8ce35f4a6f03478f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
PATH="${PATH:-/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games}"
for dir in \
"/usr/games" \
"/usr/sbin" \
"/sbin" \
"${HOME}/.cabal/bin" \
"${HOME}/.cargo/bin" \
"${HOME}/bin"; do
case :$PATH: in
*:${dir}:*)
# ${dir} already in PATH
;;
*)
PATH="${dir}:${PATH}";;
esac
done
|