postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

Default Ruby in ~/.zprofile: command not found #354

Closed nicolaguidi closed 8 years ago

nicolaguidi commented 8 years ago

I'm following the guide to set a specific Ruby version as default. Following the instructions if I call the chruby command in the ~/.zprofile I get this error: /Users/Myname/.zprofile:12: command not found: chruby.

I accomplished my goal calling chruby in the ~/.zshrc file, that makes me think it could be just a wrong instruction.

postmodern commented 8 years ago

I refined the wording a bit to mention that first you must load chruby.sh in your shell configuration, before adding the "chruby X.Y.Z" line.