.zshrc: Hardcode Ruby environment on macOS

Using rvm is a real pain in the ass. I'd rather install Ruby from
Homebrew and then hardcode the gem paths. After all, I only need
this for building DSpace on macOS.
This commit is contained in:
Alan Orth 2018-04-07 16:57:54 +03:00
parent 1bf562eec9
commit 0fb806c258
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 5 additions and 0 deletions

5
.zshrc
View File

@ -43,6 +43,11 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
# See: https://tug.org/mactex/morepackages.html
PATH=$PATH:/usr/local/texlive/2017basic/bin/x86_64-darwin
# 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.1
export GEM_PATH=~/.gem/ruby/2.5.1
PATH=$PATH:~/.gem/ruby/2.5.1/bin
PATH="/usr/local/opt/postgresql@9.5/bin:$PATH"
elif [[ "$OSTYPE" =~ ^linux.*$ ]]; then
# noop