diff --git a/setup_node.zsh b/setup_node.zsh index e06db83..ce0bdff 100755 --- a/setup_node.zsh +++ b/setup_node.zsh @@ -3,7 +3,7 @@ echo "\n<<< Starting Node Setup >>>\n" # Node versions are managed with `n`, which is in the Brewfile. -# See zshrc for N_PREFIX variable and addition to PATH. +# See zshrc for N_PREFIX variable and addition to $path array. if exists node; then echo "Node $(node --version) & NPM $(npm --version) already installed" diff --git a/zshrc b/zshrc index 388974c..1e3f0a4 100644 --- a/zshrc +++ b/zshrc @@ -27,9 +27,14 @@ PROMPT=' RPROMPT='%*' -# Add Locations to $PATH Variable -export PATH="$N_PREFIX/bin:$PATH" -export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" +# Add Locations to $path Array +typeset -U path + +path=( + "$N_PREFIX/bin" + $path + "/Applications/Visual Studio Code.app/Contents/Resources/app/bin" +) # Write Handy Functions