diff options
author | Takashi Kokubun <[email protected]> | 2022-11-03 15:09:51 -0700 |
---|---|---|
committer | git <[email protected]> | 2022-11-03 22:09:55 +0000 |
commit | a13836e70d9cc2eb569911030cbd735d68b4042c (patch) | |
tree | 4ebb9e319a6416d51152f80c71083a47aaf84234 /lib/irb/init.rb | |
parent | d24ac6d2811e461562e3bb95525399bb9cf464f8 (diff) |
[ruby/irb] Allow non-identifier aliases like Pry's @ and $
(https://github.com/ruby/irb/pull/426)
* Allow non-identifier aliases
* Move the configuration to IRB.conf
* Avoid abusing method lookup for symbol aliases
* Add more alias tests
* A small optimization
* Assume non-nil Context
* Load IRB.conf earlier
https://github.com/ruby/irb/commit/e23db5132e
Diffstat (limited to 'lib/irb/init.rb')
-rw-r--r-- | lib/irb/init.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 5409528fae..09099f88b7 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -158,6 +158,8 @@ module IRB # :nodoc: @CONF[:LC_MESSAGES] = Locale.new @CONF[:AT_EXIT] = [] + + @CONF[:COMMAND_ALIASES] = {} end def IRB.set_measure_callback(type = nil, arg = nil, &block) |