only add path entries if they exist
This commit is contained in:
parent
80128e7342
commit
0b86b4728d
6
.zlogin
6
.zlogin
@ -9,8 +9,10 @@ if [ -d ~/opt/GNAT/2020/bin ]; then
|
||||
fi
|
||||
export GNAT
|
||||
|
||||
for p in "${HOME}/opt/bin" "${HOME}/opt/sbin" "${GNAT}/bin" "${PLAN9}/bin" "${HOME}/go/bin" "${HOME}/bin" "${HOME}/tinygo/bin"; do
|
||||
PATH="${PATH}:$p"
|
||||
for p in "${HOME}/opt/bin" "${HOME}/opt/sbin" "${GNAT}/bin" "${PLAN9}/bin" "${HOME}/go/bin" "${HOME}/bin" "${HOME}/tinygo/bin" /Applications/Emacs.app/Contents/MacOS/bin; do
|
||||
if [ -d $p ]; then
|
||||
PATH="${PATH}:$p"
|
||||
fi
|
||||
done
|
||||
|
||||
export PATH
|
||||
|
Loading…
Reference in New Issue
Block a user