.zshrc: Use Node.js from Homebrew instead of nvm

One less dynamic thing needed to source and manage during shell init.
This commit is contained in:
Alan Orth 2018-04-07 17:03:05 +03:00
parent 0fb806c258
commit 8cc028a6d1
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 4 additions and 3 deletions

7
.zshrc
View File

@ -48,6 +48,10 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
export GEM_HOME=~/.gem/ruby/2.5.1
export GEM_PATH=~/.gem/ruby/2.5.1
PATH=$PATH:~/.gem/ruby/2.5.1/bin
# Use node@8 from Homebrew instead of NVM
PATH=$PATH:/usr/local/opt/node@8/bin
PATH="/usr/local/opt/postgresql@9.5/bin:$PATH"
elif [[ "$OSTYPE" =~ ^linux.*$ ]]; then
# noop
@ -64,9 +68,6 @@ export PS1='[%n@%m: %~]$ '
export EDITOR=vim
export PAGER=less
# Enable node version manager (nvm)
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
# resize images using GraphicsMagick
#
# $ smartresize DSC_0788.JPG 1920x1080 outputdir [quality]