ohmyzsh: Jekyll command not found
EDITED by moderator: 2 possible solutions:
- Add rbenv shims folder to
$PATH. See https://github.com/robbyrussell/oh-my-zsh/issues/3896#issuecomment-104304739 - Regenerate rbenv shim for jekyll. See https://github.com/robbyrussell/oh-my-zsh/issues/3896#issuecomment-186860299
Is it possible to install Jekyll, the static site generator as a plugin?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 19 (10 by maintainers)
Ok, as you can see in your
.zshrcfile, you don’t have the correct PATH. On the line that says PATH=… you should add the rbenv shims directory, like so:And that should end your problems. Please close this issue if it’s solved.
I don’t understand:
jekyllis installed in/Users/realph/.rbenv/shims/Users/realph/.rbenv/shimsis in the PATH both in bash and zsh, as you said in https://github.com/robbyrussell/oh-my-zsh/issues/3896#issuecomment-103041176 and https://github.com/robbyrussell/oh-my-zsh/issues/3896#issuecomment-103066515.The last thing that is left to try is that you really don’t have the PATH correctly in zsh and I understood that wrong. Try the following in zsh:
Afterwards, please post your
.zshrcfile.@mcornella thank you for posting this solution! Just ran into this issue (i just switched from bash to zsh), and now it works!
I just fixed a very similar problem with jekyll not being recognized by oh my zsh.
Running
which jekyllreturnedjekyll not found. Turns out that I didn’t have an .rbenv shim for jekyll –vim /Users/gemfarmer/.rbenv/shims/jekyllwas not available.I fixed this by running
rbenv rehash. The new shim was made and all was right in the world. 🎉