Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
a7c740b1
Commit
a7c740b1
authored
Oct 20, 2019
by
Kenny Heaton
Committed by
Marc Cornellà
Oct 20, 2019
Browse files
rbenv: add README (#8293)
parent
090ab73d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/rbenv/README.md
0 → 100644
View file @
a7c740b1
# 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>`
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment