diff options
author | Stan Lo <[email protected]> | 2023-11-26 17:07:41 +0000 |
---|---|---|
committer | git <[email protected]> | 2023-11-26 17:07:45 +0000 |
commit | cc5d1bf026bcc5b4929a4f9d5e32d2fa5730348c (patch) | |
tree | 44175f94844752733019e6f5445d249a614e42e5 /lib/irb/init.rb | |
parent | 688faa93f03142b632b8eb0de0946f4e86845ebc (diff) |
[ruby/irb] Display aliases in help message
(https://github.com/ruby/irb/pull/788)
Similar to Pry, it displays user-defined aliases in the help message with
a dedicated section. With the current default aliases, it looks like:
```
...other sections...
Aliases
$ Alias for `show_source`
@ Alias for `whereami`
```
https://github.com/ruby/irb/commit/2a0eacc891
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 9704e36cb1..b69f68d530 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -189,10 +189,6 @@ module IRB # :nodoc: # Symbol aliases :'$' => :show_source, :'@' => :whereami, - # Keyword aliases - :break => :irb_break, - :catch => :irb_catch, - :next => :irb_next, } end |