1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00
ohmyzsh/plugins/rbenv
Marc Cornellà 8755c5f101 rbenv: fix current_gemset
Fixes #8925
Co-authored-by: Josh Goodall <inopinatus@inopinatus.org>
2020-07-30 18:20:30 +02:00
..
rbenv.plugin.zsh rbenv: fix current_gemset 2020-07-30 18:20:30 +02:00
README.md rbenv: add README (#8293) 2019-10-20 20:16:37 +02:00

rbenv plugin

The primary job of this plugin is to provide rbenv_prompt_info which can be added to your theme to include Ruby version and gemset information into your prompt.

Some functionality of this plugin will not work unless you also have the rbenv plugin gemset installed. https://github.com/jf/rbenv-gemset

To use it, add rbenv to the plugins array in your zshrc file:

plugins=(... rbenv)

Alias

Alias Command Description
rubies rbenv versions List the installed Ruby versions
gemsets rbenv gemset list List the existing gemsets

Functions

  • current_ruby: The version of Ruby currently being used.
  • current_gemset: The name of the current gemset.
  • gems: Lists installed gems with enhanced formatting and color.
  • rbenv_prompt_info: For adding information to your prompt. Format: <ruby version>@<current gemset>.