Created
January 25, 2013 18:18
-
-
Save carlthewebmaster/4636636 to your computer and use it in GitHub Desktop.
For setting up Gem installation under $HOME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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