Use array for $path in zshenv

This commit is contained in:
Jeremy Dormitzer 2021-03-08 14:15:38 -05:00
parent 8a56a1fc70
commit 545cdc3539

View File

@ -1,3 +1,6 @@
typeset -U path
path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin ~/.cargo/bin $path)
if [ -d ~/lola ];
then
export LOLA_HOME=~/lola/lola-server
@ -6,7 +9,6 @@ then
fi
export LEDGER_FILE="$HOME/journal.ledger"
export PATH="$HOME/bin/":"$HOME/.local/bin":"$HOME/.gem/ruby/2.6.0/bin":"$HOME/.gem/ruby/2.5.0/bin":"$HOME/go/bin":"/opt/local/bin":"$PATH"
EDITOR="$(which emacsclient)"
export EDITOR
@ -22,5 +24,5 @@ export GPG_TTY
if [ -d /Applications/Postgres.app ];
then
export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:"$PATH"
path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path)
fi