しょうもないことだけど感心したので。
久しぶりに引っ張り出してきたMacBookAirの設定をしてるとき、rbenv install
が効かないので「アルェー?」となっていた。
理由はruby-buildが入ってなかったから。
ruby-buildがないとき
$ rbenv --help
rbenv 0.4.0
Usage: rbenv <command> [<args>]
Some useful rbenv commands are:
commands List all available rbenv commands
local Set or show the local application-specific Ruby version
global Set or show the global Ruby version
shell Set or show the shell-specific Ruby version
rehash Rehash rbenv shims (run this after installing executables)
version Show the current Ruby version and its origin
versions List all Ruby versions available to rbenv
which Display the full path to an executable
whence List all Ruby versions that contain the given executable
See `rbenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/sstephenson/rbenv#readme
ruby-buildがあるとき
$ rbenv -h
rbenv 0.4.0
Usage: rbenv <command> [<args>]
Some useful rbenv commands are:
commands List all available rbenv commands
local Set or show the local application-specific Ruby version
global Set or show the global Ruby version
shell Set or show the shell-specific Ruby version
install Install a Ruby version using ruby-build
uninstall Uninstall a specific Ruby version
rehash Rehash rbenv shims (run this after installing executables)
version Show the current Ruby version and its origin
versions List all Ruby versions available to rbenv
which Display the full path to an executable
whence List all Ruby versions that contain the given executable
See `rbenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/sstephenson/rbenv#readme
rbenv install
とrbenv uninstall
が増えた。
ちゃんとruby-buildが入っているかどうかチェックして、使えないサブコマンドは見えないようにしてくれてるんですね。