rbenv在zsh里解决方案

刚把iterm里安装上zsh,然后zsh就怎么也读不出rbenv的version。

解决方式用下面这些:

echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
echo 'source $HOME/.zshenv' >> ~/.zshrc
exec $SHELL