Skip to content

Commit

Permalink
Move N_PREFIX to the start of PATH
Browse files Browse the repository at this point in the history
Yarn requires Node as a dependency so we will be forced to install it with Homebrew. But we want to use the version(s) installed with n. Putting N_PREFIX at the start of the PATH means we can prefer items installed via NPM over Homebrew.

Also installed Yarn (though I probably don't need it).
  • Loading branch information
eieioxyz committed Jun 29, 2020
1 parent 234bc16 commit 212adf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ brew "mas"
brew "n"
# Free (GNU) replacement for the Pico text editor
brew "nano"
# JavaScript package manager
brew "yarn"
# UNIX shell (command interpreter)
brew "zsh"
cask "alfred"
Expand Down
3 changes: 1 addition & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ RPROMPT='%*'


# Add Locations to $PATH Variable
# Add Visual Studio Code (code)
export PATH="$N_PREFIX/bin:$PATH"
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="$PATH:$N_PREFIX/bin"


# Write Handy Functions
Expand Down

0 comments on commit 212adf8

Please sign in to comment.