1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 08:50:08 +00:00
ohmyzsh/plugins/ruby/README.md

32 lines
2.2 KiB
Markdown
Raw Normal View History

2018-10-04 10:48:29 +00:00
# Ruby plugin
This plugin adds aliases for common commands used in dealing with [Ruby](https://www.ruby-lang.org/en/) and [gem packages](https://rubygems.org/).
To use it, add `ruby` to the plugins array in your zshrc file:
```zsh
plugins=(... ruby)
```
## Aliases
| Alias | Command | Description |
|-------|----------------------------------------|------------------------------------------------------|
| rb | `ruby` | The Ruby command |
| sgem | `sudo gem` | Run sudo gem on the system ruby, not the active ruby |
| rfind | `find . -name "*.rb" \| xargs grep -n` | Find ruby file |
| gin | `gem install` | Install a gem into the local repository |
| gun | `gem uninstall` | Uninstall gems from the local repository |
| gli | `gem list` | Display gems installed locally |
2020-06-08 19:18:50 +00:00
| gi | `gem info` | Show information for the given gem |
2020-07-01 03:28:27 +00:00
| giall | `gem info --all` | Display all gem versions |
2020-06-08 19:18:50 +00:00
| gca | `gem cert --add` | Add a trusted certificate |
| gcr | `gem cert --remove` | Remove a trusted certificate |
| gcb | `gem cert --build` | Build private key and self-signed certificate |
| gclup | `gem cleanup -n` | Do not uninstall gem |
| ggi | `gem generate_index` | Generate index file for gem server |
| ghlp | `gem help` | Provide additional help |
2020-06-08 19:18:50 +00:00
| gl | `gem lock` | Generate a lockdown list of gems |
| go | `gem open` | Open gem source in default editor |
| goe | `gem open -e` | Open gem sources in preferred editor |