.zshrc: Add Ruby and Node.js stuff for Linux

This is mostly for doing DSpace Mirage 2 builds. I hard code these
paths here so I don't need to ues horrible RVM or NVM.
This commit is contained in:
Alan Orth 2018-05-31 11:56:47 -07:00
parent 86709372d4
commit a4247542bf
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 11 additions and 0 deletions

11
.zshrc
View File

@ -55,6 +55,17 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
PATH=$PATH:/usr/local/opt/postgresql@9.5/bin
elif [[ "$OSTYPE" =~ ^linux.*$ ]]; then
PATH=$PATH:~/.local/bin
# Manually manage Ruby shit for DSpace build environment (anything is better than RVM)
# DSpace Mirage 2 build explicitly looks for GEM_HOME and GEM_PATH
export GEM_HOME=~/.gem/ruby/2.5.0
export GEM_PATH=~/.gem/ruby/2.5.0
PATH=$PATH:~/.gem/ruby/2.5.0/bin
# System Node.js with local "global" package prefix, for DSpace build environment:
# $ npm config set prefix ~/.node_modules
# $ npm install -g bower grunt grunt-cli
PATH=$PATH:~/.node_modules/bin
fi
alias ls='ls -F --color=auto'