Adds check before running ruby commands

master
Jonathan Hodgson 4 years ago
parent 30dd026965
commit 32dcc8c957
  1. 2
      shells/shared/environmentVariables

@ -21,10 +21,12 @@ done
export PATH=~/Projects/current/bin:$mypath:$GOPATH/bin:$HOME/.local/share/bin:$PATH:.
#Ruby things
if type -p ruby > /dev/null; then
GEM_HOME=$(ls -t -U | ruby -e 'puts Gem.user_dir')
GEM_PATH=$GEM_HOME
export PATH=$PATH:$GEM_HOME/bin
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
fi
export PATH=$PATH:$HOME/node_modules/.bin

Loading…
Cancel
Save