rbenv-sudo
rbenv-sudo copied to clipboard
Sudo plugin for rbenv
From the man page: > -E, --preserve-env > Indicates to the security policy that the user wishes to pre‐ > serve their existing environment variables. The security > policy may...
Runs rbenv executables under sudo without choking on non-rbenv executables. Simpler install instructions.
Add '-E' to command to preserve the environment vars set in the launching shell
This eliminates the hardcoded `PATH` and uses whatever root's `PATH` is at runtime.
with rails 4 in vagrant, gems is installed in vendor/bundle, i can run rbenv sudo bundle exec rails s, but can't run rbenv sudo bundle exec puma or unicorn ....
After typing `rbenv sudo` in terminal tab-completion no longer works on Ubuntu (12.04). Example: ``` $ rbenv sudo rmate /etc/mys[TAB] = SHOULD => $ rbenv sudo rmate /etc/mysql/ ```