浏览代码

Merge branch 'patch-1' of https://github.com/royninja/ohmyzsh into royninja-patch-1

Robby Russell 3 年之前
父节点
当前提交
a6b5aede81
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 11 0
      plugins/ruby/README.md
  2. 11 0
      plugins/ruby/ruby.plugin.zsh

+ 11 - 0
plugins/ruby/README.md

@@ -18,3 +18,14 @@ plugins=(... ruby)
 | 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                       |
+| gi    | `gem info`                             | Show information for the given gem                   |
+| giall | `gem info --all`                       | Display all gem versions                             |
+| 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                   |
+| gh    | `gem help`                             | Provide additional help                              |
+| 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                 |

+ 11 - 0
plugins/ruby/ruby.plugin.zsh

@@ -12,3 +12,14 @@ alias rb="ruby"
 alias gin="gem install"
 alias gun="gem uninstall"
 alias gli="gem list"
+alias gi="gem info"
+alias giall="gem info --all"
+alias gca="gem cert --add"
+alias gcr="gem cert --remove"
+alias gcb="gem cert --build"
+alias gclup="gem cleanup -n"
+alias ggi="gem generate_index"
+alias gh="gem help"
+alias gl="gem lock"
+alias go="gem open"
+alias goe="gem open -e"