Skip to content

Instantly share code, notes, and snippets.

@carlthewebmaster
Created January 25, 2013 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlthewebmaster/4636636 to your computer and use it in GitHub Desktop.
Save carlthewebmaster/4636636 to your computer and use it in GitHub Desktop.
For setting up Gem installation under $HOME
#!/bin/bash
mkdir -p $HOME/lib/ruby/gems #containing folder
# assign new folder to GEM_HOME and write it to your bash_profile to be executed at login.
echo 'export GEM_HOME=$HOME/lib/ruby/gems' >> .bashrc
echo 'PATH=$PATH:$GEM_HOME/bin' >> .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment