Skip to content

Instantly share code, notes, and snippets.

@benschwarz
Forked from pat/gist:217895
Created November 18, 2009 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benschwarz/237457 to your computer and use it in GitHub Desktop.
Save benschwarz/237457 to your computer and use it in GitHub Desktop.
# Install gems locally, and only locally, without gem complaining
# about path access, and ensuring access to executables.
#
# Goes in config.fish
set -gx GEM_PATH "$HOME/.gem/ruby/1.8"
set -gx GEM_HOME "$HOME/.gem/ruby/1.8"
set -gx PATH "$HOME/.gem/ruby/1.8/bin:$PATH"
# Install gems locally, and only locally, without gem complaining
# about path access, and ensuring access to executables.
#
# Goes in .bash_profile or .bash_login.
export GEM_PATH="$HOME/.gem/ruby/1.8"
export GEM_HOME="$HOME/.gem/ruby/1.8"
export PATH="$HOME/.gem/ruby/1.8/bin:$PATH"
http://ujihisa.blogspot.com/2009/06/rubygems-best-practice.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment