8c1495a18e5ba496837bf3978300519edadffaff

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

fix(ruby)!: rename aliases that start with `g` to `ge`

BREAKING CHANGE: all `gem` aliases that started with `g` now start
with `ge` to fix conflicting names with the `git` plugin. Also, the
`ghlp` alias is now renamed `geh`. Have a look at the plugin README
for more information.

Fixes #10320

Diff

 1diff --git a/plugins/ruby/README.md b/plugins/ruby/README.md
 2index 76afc79f6c04accf6cf232b359e56467546fc22e..59594ade7e404dd1dbd3c9a588ccdb7d93b5ccf2 100644
 3--- a/plugins/ruby/README.md
 4+++ b/plugins/ruby/README.md
 5@@ -10,22 +10,22 @@ plugins=(... ruby)
 6 
 7 ## Aliases
 8 
 9-| Alias | Command                                | Description                                          |
10-|-------|----------------------------------------|------------------------------------------------------|
11-| rb    | `ruby`                                 | The Ruby command                                     |
12-| sgem  | `sudo gem`                             | Run sudo gem on the system ruby, not the active ruby |
13-| rfind | `find . -name "*.rb" \| xargs grep -n` | Find ruby file                                       |
14-| gin   | `gem install`                          | Install a gem into the local repository              |
15-| gun   | `gem uninstall`                        | Uninstall gems from the local repository             |
16-| gli   | `gem list`                             | Display gems installed locally                       |
17-| gi    | `gem info`                             | Show information for the given gem                   |
18-| giall | `gem info --all`                       | Display all gem versions                             |
19-| gca   | `gem cert --add`                       | Add a trusted certificate                            |
20-| gcr   | `gem cert --remove`                    | Remove a trusted certificate                         |
21-| gcb   | `gem cert --build`                     | Build private key and self-signed certificate        |
22-| gclup | `gem cleanup -n`                       | Do not uninstall gem                                 |
23-| ggi   | `gem generate_index`                   | Generate index file for gem server                   |
24-| ghlp  | `gem help`                             | Provide additional help                              |
25-| gl    | `gem lock`                             | Generate a lockdown list of gems                     |
26-| go    | `gem open`                             | Open gem source in default editor                    |
27-| goe   | `gem open -e`                          | Open gem sources in preferred editor                 |
28+| Alias  | Command                                | Description                                          |
29+|--------|----------------------------------------|------------------------------------------------------|
30+| rb     | `ruby`                                 | The Ruby command                                     |
31+| sgem   | `sudo gem`                             | Run sudo gem on the system ruby, not the active ruby |
32+| rfind  | `find . -name "*.rb" \| xargs grep -n` | Find ruby file                                       |
33+| gein   | `gem install`                          | Install a gem into the local repository              |
34+| geun   | `gem uninstall`                        | Uninstall gems from the local repository             |
35+| geli   | `gem list`                             | Display gems installed locally                       |
36+| gei    | `gem info`                             | Show information for the given gem                   |
37+| geiall | `gem info --all`                       | Display all gem versions                             |
38+| geca   | `gem cert --add`                       | Add a trusted certificate                            |
39+| gecr   | `gem cert --remove`                    | Remove a trusted certificate                         |
40+| gecb   | `gem cert --build`                     | Build private key and self-signed certificate        |
41+| geclup | `gem cleanup -n`                       | Do not uninstall gem                                 |
42+| gegi   | `gem generate_index`                   | Generate index file for gem server                   |
43+| geh    | `gem help`                             | Provide additional help                              |
44+| gel    | `gem lock`                             | Generate a lockdown list of gems                     |
45+| geo    | `gem open`                             | Open gem source in default editor                    |
46+| geoe   | `gem open -e`                          | Open gem sources in preferred editor                 |
47diff --git a/plugins/ruby/ruby.plugin.zsh b/plugins/ruby/ruby.plugin.zsh
48index c235b6b699620f44f708be22cf0677f622593a67..890fcb179d08a87558ed6b41e3d202517b0a3390 100644
49--- a/plugins/ruby/ruby.plugin.zsh
50+++ b/plugins/ruby/ruby.plugin.zsh
51@@ -8,17 +8,17 @@ alias rfind='find . -name "*.rb" | xargs grep -n'
52 alias rb="ruby"
53 
54 # Gem Command Shorthands
55-alias gin="gem install"
56-alias gun="gem uninstall"
57-alias gli="gem list"
58-alias gi="gem info"
59-alias giall="gem info --all"
60-alias gca="gem cert --add"
61-alias gcr="gem cert --remove"
62-alias gcb="gem cert --build"
63-alias gclup="gem cleanup -n"
64-alias ggi="gem generate_index"
65-alias ghlp="gem help"
66-alias gl="gem lock"
67-alias go="gem open"
68-alias goe="gem open -e"
69+alias gein="gem install"
70+alias geun="gem uninstall"
71+alias geli="gem list"
72+alias gei="gem info"
73+alias geiall="gem info --all"
74+alias geca="gem cert --add"
75+alias gecr="gem cert --remove"
76+alias gecb="gem cert --build"
77+alias geclup="gem cleanup -n"
78+alias gegi="gem generate_index"
79+alias geh="gem help"
80+alias gel="gem lock"
81+alias geo="gem open"
82+alias geoe="gem open -e"