mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 12:45:59 +02:00
rbenv: add example and improve page (#5084)
This commit is contained in:
parent
f16f23ab85
commit
325a88c924
1 changed files with 12 additions and 8 deletions
|
@ -3,30 +3,34 @@
|
|||
> A tool to easily install Ruby versions and manage application environments.
|
||||
> More information: <https://github.com/rbenv/rbenv>.
|
||||
|
||||
- Install one or more space-separated versions of Ruby:
|
||||
- Install a Ruby version:
|
||||
|
||||
`rbenv install {{version(s)}}`
|
||||
`rbenv install {{version}}`
|
||||
|
||||
- Display a list of installed versions:
|
||||
- Display a list of the latest stable versions for each Ruby:
|
||||
|
||||
`rbenv install --list`
|
||||
|
||||
- Display a list of installed Ruby versions:
|
||||
|
||||
`rbenv versions`
|
||||
|
||||
- Use a specific version of Ruby across the whole system:
|
||||
- Use a specific Ruby version across the whole system:
|
||||
|
||||
`rbenv global {{version}}`
|
||||
|
||||
- Use a specific version of Ruby for an application/project directory:
|
||||
- Use a specific Ruby version for an application/project directory:
|
||||
|
||||
`rbenv local {{version}}`
|
||||
|
||||
- Show the currently selected Ruby version:
|
||||
- Display the currently selected Ruby version:
|
||||
|
||||
`rbenv version`
|
||||
|
||||
- Uninstall a version of Ruby:
|
||||
- Uninstall a Ruby version:
|
||||
|
||||
`rbenv uninstall {{version}}`
|
||||
|
||||
- Display all ruby versions that contain the specified executable:
|
||||
- Display all Ruby versions that contain the specified executable:
|
||||
|
||||
`rbenv whence {{executable}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue