.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:
parent
1bf562eec9
commit
0fb806c258
5
.zshrc
5
.zshrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user