Adds check before running ruby commands

Jonathan Hodgson 4 years ago
parent ba2b85b2cd
commit a93a6074e2
  1. 10
      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
GEM_HOME=$(ls -t -U | ruby -e 'puts Gem.user_dir') if type -p ruby > /dev/null; then
GEM_PATH=$GEM_HOME GEM_HOME=$(ls -t -U | ruby -e 'puts Gem.user_dir')
export PATH=$PATH:$GEM_HOME/bin GEM_PATH=$GEM_HOME
export GEM_HOME=$(ruby -e 'print Gem.user_dir') export PATH=$PATH:$GEM_HOME/bin
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