sstephenson/rbenv — Issue #128: system "bundle exec rake foobar" fails to find bundle
Author: 23inhouse
Created: 2011-10-20 01:37:31+00:00
State: open

I just setup a new server using rbenv instead of rvm.
I am finding that i have to export the shims before all system calls.
Is there better of doing this?

For example

```system "bundle exec rake run_command"```
-> does nothing

```system "export PATH=\"$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH\" bundle exec rake run_command"```
-> runs the command

Thanks
Bash noob