diff options
author | Kenny Heaton <kenny.heaton@life.church> | 2019-10-20 13:16:37 -0500 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-10-20 20:16:37 +0200 |
commit | a7c740b1d7d0033c6de118439c7935962b2a5c2a (patch) | |
tree | c84adfe0f46777b58d8886fcd0813ae169c16c5a /plugins/rbenv | |
parent | 090ab73daa587cd592bbd03445223bc570f91367 (diff) | |
download | zsh-a7c740b1d7d0033c6de118439c7935962b2a5c2a.tar.gz zsh-a7c740b1d7d0033c6de118439c7935962b2a5c2a.tar.bz2 zsh-a7c740b1d7d0033c6de118439c7935962b2a5c2a.zip |
rbenv: add README (#8293)
Diffstat (limited to 'plugins/rbenv')
-rw-r--r-- | plugins/rbenv/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/rbenv/README.md b/plugins/rbenv/README.md new file mode 100644 index 000000000..43a2e93ac --- /dev/null +++ b/plugins/rbenv/README.md @@ -0,0 +1,26 @@ +# 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: +```zsh +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>`. |