ohmyzsh: Jekyll command not found

EDITED by moderator: 2 possible solutions:


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)

Most upvoted comments

Ok, as you can see in your .zshrc file, you don’t have the correct PATH. On the line that says PATH=… you should add the rbenv shims directory, like so:

export PATH="$HOME/.node/bin:$HOME/.rbenv/shims:$PATH"

And that should end your problems. Please close this issue if it’s solved.

I don’t understand:

  1. jekyll is installed in /Users/realph/.rbenv/shims
  2. /Users/realph/.rbenv/shims is 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:

$ jekyll    # this should say command not found
$ path+=(/Users/realph/.rbenv/shims)
$ jekyll   # this should work

Afterwards, please post your .zshrc file.

@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 jekyll returned jekyll not found. Turns out that I didn’t have an .rbenv shim for jekyll –

vim /Users/gemfarmer/.rbenv/shims/jekyll was not available.

I fixed this by running rbenv rehash. The new shim was made and all was right in the world. 🎉