Open andrewhavens opened 10 years ago
I found this rbenv wiki article which list the various initialization scenarios https://github.com/sstephenson/rbenv/wiki/Unix-shell-initialization#shell-init-files. I don't see /etc/profile.d
in the list, so I'm not sure where it falls in the load order.
I also found this helpful article which lists the various profile/rc files: http://bencane.com/2013/09/16/understanding-a-little-more-about-etcprofile-and-etcbashrc/
@andrewhavens May I ask what you ended up using?
@nicka Sorry, I don't even remember! I'm not an expert on this kind of stuff so I deferred to the person responsible for implementation.
I'm working with someone on a chef project. He suggested we add some code to initialize
rbenv
for all users. I thought this cookbook was already doing that by adding the/etc/profile.d/rbenv.sh
file. He said that those files only load for interactive sessions, but not all (i.e.ssh $node "command"
).Here's the code that he wrote. I hate to have duplicate/unnecessary code. Is this something that can/should be incorporated into the official
rbenv
cookbook, or is it an appropriate supplement to the cookbook?