summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2024-12-28 23:55:20 +0800
committergit <svn-admin@ruby-lang.org>2024-12-28 15:55:27 +0000
commit609a555ee00e7501d52bc4155cd2f8ee980cee2f (patch)
tree3d66b5f249fdef4e9db4b7e54aef2e8385615a4a /lib
parente4ec2128ae9c5c2a43cd599759f19db21fc0238f (diff)
[ruby/irb] Add `ri` an alias to the `show_doc` command
(https://github.com/ruby/irb/pull/1054) https://github.com/ruby/irb/commit/52e77dd113
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/default_commands.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/irb/default_commands.rb b/lib/irb/default_commands.rb
index 768fbee9d7..533bdfc875 100644
--- a/lib/irb/default_commands.rb
+++ b/lib/irb/default_commands.rb
@@ -218,7 +218,8 @@ module IRB
)
_register_with_aliases(:irb_show_doc, Command::ShowDoc,
- [:show_doc, NO_OVERRIDE]
+ [:show_doc, NO_OVERRIDE],
+ [:ri, NO_OVERRIDE]
)
_register_with_aliases(:irb_info, Command::IrbInfo)