From a4247542bfdfccf746dba773f38f1404e6bf6093 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 31 May 2018 11:56:47 -0700 Subject: [PATCH] .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. --- .zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.zshrc b/.zshrc index 0e638c9..ad87391 100644 --- a/.zshrc +++ b/.zshrc @@ -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'