Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
Created May 1, 2018 01:33
Show Gist options
  • Select an option

  • Save GeoffWilliams/e5c1df898d332346eea8d248ea5fb3b1 to your computer and use it in GitHub Desktop.

Select an option

Save GeoffWilliams/e5c1df898d332346eea8d248ea5fb3b1 to your computer and use it in GitHub Desktop.
How to run a clrean ruby command from inside rbenv + bundler and have it use your rbenv but not the bundle - eg make it the same as running the command on the commandline
# note that unset != setting to empty string! Unset will use the default value in when ruby loads, empty
# string will use NO value, eg things will be broken
unset RUBYLIB unset GEM_HOME
unset BUNDLE_GEMFILE
unset BUNDLE_BIN_PATH
unset BUNDLER_VERSION
unset RUBYOPT
unset GEM_PATH
unset GEM_HOME
the_ruby_command_to run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment