From 325a88c9241f770756248ddf11a9fc73062cc23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20W=C3=BCnsche?= <42999314+thomaswuensche@users.noreply.github.com> Date: Mon, 4 Jan 2021 19:01:41 +0100 Subject: [PATCH] rbenv: add example and improve page (#5084) --- pages/common/rbenv.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pages/common/rbenv.md b/pages/common/rbenv.md index 9fc016f52e..ab30905af6 100644 --- a/pages/common/rbenv.md +++ b/pages/common/rbenv.md @@ -3,30 +3,34 @@ > A tool to easily install Ruby versions and manage application environments. > More information: . -- 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}}`