The last modifications of this post were around 2 years ago, some information may be outdated!
Summary
For zsh users, this adds the ruby environment manager, if it exists
Code
if command -v rbenv >/dev/null; then
eval "$(rbenv init - zsh --no-rehash)"
fi