I switched my shell bash and noticed that zsh shell does not source /etc/profile.d.
As Zsh is at times positioned as a more advanced alternative to bash, should it not by sourcing etc profile? Now all kinds of tools are not working for example RBenv. Did I miss a step somewhere?
The Rbenv installer that I am using creates a file
/etc/profile.d/rbenv.sh which seems to suggest that Zsh would also source this file
export RBENV_ROOT=/opt/rbenv export PATH=$RBENV_ROOT/bin:/opt/rbenv/plugins/ruby_build/bin:$PATH case $SHELL in */zsh) source $RBENV_ROOT/completions/rbenv.zsh ;; */bash) source $RBENV_ROOT/completions/rbenv.bash ;; *) source $RBENV_ROOT/completions/rbenv.bash ;; esac eval "$(rbenv init -)"