Adds check before running ruby commands

Jonathan Hodgson 4 years ago
parent ba2b85b2cd
commit a93a6074e2
  1. 2
      shells/shared/environmentVariables

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

Loading…
Cancel
Save