From 609a555ee00e7501d52bc4155cd2f8ee980cee2f Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 28 Dec 2024 23:55:20 +0800 Subject: [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 --- lib/irb/default_commands.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3