.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

7
.zshrc
View File

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