-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source .rbenvrc breaks for non-interactive shells #40
Comments
This issue came up during a capistrano deployment when running bundler over ssh on the deployment machine. |
PS: great module (saved me a ton of time)! |
Did you try using the .profile instead of .bashrc? This should fix your problem. |
@alup Thanks for having a look at this! Unfortunately bash doesn't care about a my
I'll fix this in my fork. |
@bjoernalbers Is this still an issue? |
I was just having difficulties with my |
I added this step to my manifest, it may be worth adding into the rbenv module itself. It worked around the .bashrc / .bash_profile / .profile problem for me.
|
I was seeing the .profile get loaded on Ubuntu 14.x but not on CentOS 6.5 and @ghost's code to init.pp and then 'require ::rbenv' to rbenv::install makes it work on my nodes. I'll submit a PR if I get some time. |
Installing rbenv with:
...works not for non-login shells:
...because .bashrc does only source .rbenvrc for interactive shells:
Placing the source statement earlier would of course solve this.
The text was updated successfully, but these errors were encountered: