Skip to content

Instantly share code, notes, and snippets.

@yashvekaria
Created December 23, 2017 11:47
Show Gist options
  • Save yashvekaria/99489a4839a79815ad12fa4cae3f609b to your computer and use it in GitHub Desktop.
Save yashvekaria/99489a4839a79815ad12fa4cae3f609b to your computer and use it in GitHub Desktop.
zsh: command not found: rbenv
If you just switched from bash to zsh and have issues with rbenv and gem, then you should move rbenv initialization to ~/.zshenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
$ echo 'eval "$(rbenv init -)"' >> ~/.zshenv
$ echo 'source $HOME/.zshenv' >> ~/.zshrc
$ exec $SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment