Category Archives: zsh

zsh: command not found: bundle error

I have installed zsh in my ubuntu 16.04, but after install rails when trying to bundle install I found following error in my console:

zsh: command not found: bundle (after gem install bundle)

After searching on google I found following solution from

  • echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> ~/.zshenv
  • echo ‘eval “$(rbenv init -)”‘ >> ~/.zshenv
  • echo ‘source $HOME/.zshenv’ >> ~/.zshrc
  • exec $SHELL

Running all those commands one by one will solve this problem.