Skip to content

Instantly share code, notes, and snippets.

@pmarreck
Created June 14, 2012 19: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 pmarreck/2932330 to your computer and use it in GitHub Desktop.
Save pmarreck/2932330 to your computer and use it in GitHub Desktop.
Add your project's load paths to the Ruby load paths, when you're anywhere in that project, via RVM's .rvmrc
# Put this at the end of your PROJECT .rvmrc (not your $HOME/.rvmrc!)
# add this project's paths to the $LOAD_PATH
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export RUBYLIB="$DIR:$DIR/test:$DIR/lib"
@pmarreck
Copy link
Author

This allows you to run any test directly (for example in Sublime Text 2 using command-B) without changing any require paths, for one thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment