sottish sottish - 10 months ago 71
Ruby Question

rbenv shell not command

rbenv installed. but rbenv shell not command.

ationtekiMacBook-Air:~ dation$ rbenv versions
* 2.0.0-p247 (set by /Users/dation/.ruby-version)
dationtekiMacBook-Air:~ dation$ rbenv version
2.0.0-p247 (set by /Users/dation/.ruby-version)
dationtekiMacBook-Air:~ dation$ rbenv shell
rbenv: no such command `shell'

ationtekiMacBook-Air:~ dation$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

Answer Source

There is this note in rbenv's README (see Installation) about the shell command:

Note that you'll need rbenv's shell integration enabled (step 3 of the installation instructions) in order to use this command.

Step 3 is:

Add rbenv init to your shell to enable shims and autocompletion.

$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

Same as in previous step, use ~/.profile on Ubuntu, ~/.zshrc for Zsh.

Did you follow that instruction?