summaryrefslogtreecommitdiff
path: root/plugins/ruby
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2021-10-23 18:01:40 -0600
committerTuowen Zhao <ztuowen@gmail.com>2021-10-23 18:01:40 -0600
commitfad92c603be0ff36825cc53bf8c485d4b95c7869 (patch)
tree407fe826be62a3543b6feab4f3552f58575234de /plugins/ruby
parentc674485e6b4abe313469900997d893d2940ee843 (diff)
parentf1dd97bb2a9df55fae9b1ca26c829b9f8b290667 (diff)
downloadzsh-fad92c603be0ff36825cc53bf8c485d4b95c7869.tar.gz
zsh-fad92c603be0ff36825cc53bf8c485d4b95c7869.tar.bz2
zsh-fad92c603be0ff36825cc53bf8c485d4b95c7869.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/ruby')
-rw-r--r--plugins/ruby/README.md27
-rw-r--r--plugins/ruby/ruby.plugin.zsh20
2 files changed, 34 insertions, 13 deletions
diff --git a/plugins/ruby/README.md b/plugins/ruby/README.md
index ad2755bbf..59594ade7 100644
--- a/plugins/ruby/README.md
+++ b/plugins/ruby/README.md
@@ -10,11 +10,22 @@ 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 |
+| 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 |
+| gein | `gem install` | Install a gem into the local repository |
+| geun | `gem uninstall` | Uninstall gems from the local repository |
+| geli | `gem list` | Display gems installed locally |
+| gei | `gem info` | Show information for the given gem |
+| geiall | `gem info --all` | Display all gem versions |
+| geca | `gem cert --add` | Add a trusted certificate |
+| gecr | `gem cert --remove` | Remove a trusted certificate |
+| gecb | `gem cert --build` | Build private key and self-signed certificate |
+| geclup | `gem cleanup -n` | Do not uninstall gem |
+| gegi | `gem generate_index` | Generate index file for gem server |
+| geh | `gem help` | Provide additional help |
+| gel | `gem lock` | Generate a lockdown list of gems |
+| geo | `gem open` | Open gem source in default editor |
+| geoe | `gem open -e` | Open gem sources in preferred editor |
diff --git a/plugins/ruby/ruby.plugin.zsh b/plugins/ruby/ruby.plugin.zsh
index 177b35b31..890fcb179 100644
--- a/plugins/ruby/ruby.plugin.zsh
+++ b/plugins/ruby/ruby.plugin.zsh
@@ -1,5 +1,4 @@
-# TODO: Make this compatible with rvm.
-# Run sudo gem on the system ruby, not the active ruby.
+# Run sudo gem on the system ruby, not the active ruby
alias sgem='sudo gem'
# Find ruby file
@@ -9,6 +8,17 @@ alias rfind='find . -name "*.rb" | xargs grep -n'
alias rb="ruby"
# Gem Command Shorthands
-alias gin="gem install"
-alias gun="gem uninstall"
-alias gli="gem list"
+alias gein="gem install"
+alias geun="gem uninstall"
+alias geli="gem list"
+alias gei="gem info"
+alias geiall="gem info --all"
+alias geca="gem cert --add"
+alias gecr="gem cert --remove"
+alias gecb="gem cert --build"
+alias geclup="gem cleanup -n"
+alias gegi="gem generate_index"
+alias geh="gem help"
+alias gel="gem lock"
+alias geo="gem open"
+alias geoe="gem open -e"