You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: enable rbenv for zshlineinfile:
path: /home/xxxx/.zprofileline: 'source /etc/profile.d/rbenv.sh'
You could create a variable to enable zsh support and then loop through all rbenv-users to add a line to .zprofile in their homedir.
It could also work with a global /etc/zsh/zprofile, but I'm not sure where the optimal place would be and I have read about different places like /etc/zprofile.
Placing the
rbenv init -
script in the/etc/profile.d
folder (in https://github.com/zzet/ansible-rbenv-role/blob/master/tasks/main.yml#L87) should enable a systemwide installation for all users. This only works with shells using the/etc/profile.d
folder. For example, zsh does not rely on this folder, so users usingzsh
end up with unfound commands for both ruby and rbenv.The text was updated successfully, but these errors were encountered: