Use array for $path in zshenv
This commit is contained in:
parent
8a56a1fc70
commit
545cdc3539
@ -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 ];
|
if [ -d ~/lola ];
|
||||||
then
|
then
|
||||||
export LOLA_HOME=~/lola/lola-server
|
export LOLA_HOME=~/lola/lola-server
|
||||||
@ -6,7 +9,6 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export LEDGER_FILE="$HOME/journal.ledger"
|
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)"
|
EDITOR="$(which emacsclient)"
|
||||||
export EDITOR
|
export EDITOR
|
||||||
@ -22,5 +24,5 @@ export GPG_TTY
|
|||||||
|
|
||||||
if [ -d /Applications/Postgres.app ];
|
if [ -d /Applications/Postgres.app ];
|
||||||
then
|
then
|
||||||
export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:"$PATH"
|
path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user