From 545cdc353953b445273094dfb373d49e7aa8afc6 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 8 Mar 2021 14:15:38 -0500 Subject: [PATCH] Use array for $path in zshenv --- zsh/.zshenv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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