diff --git a/zsh/.zshenv b/zsh/.zshenv index 0d3ce2c..7145e23 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -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