Skip to content

Instantly share code, notes, and snippets.

@danp
Created February 24, 2012 04:13
Show Gist options
  • Save danp/1897546 to your computer and use it in GitHub Desktop.
Save danp/1897546 to your computer and use it in GitHub Desktop.
bundler as virtualenv!
mkdir -p bin
bundle exec bash -c 'cat > bin/activate <<EOF
#!/bin/sh
export BUNDLE_BIN_PATH="$BUNDLE_BIN_PATH"
export PATH="$PATH"
export BUNDLE_GEMFILE="$BUNDLE_GEMFILE"
export RUBYOPT="$RUBYOPT"
EOF'
source bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment