diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-11-10 09:31:11 -0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-10 17:31:15 +0000 |
commit | 0de3bc92b4fc3bb9fc0930e98baed37044ed44e1 (patch) | |
tree | 528b7a9b769f13a06f62b24b942cf71f79d32d14 /lib/irb | |
parent | bab8051d2d20a13f4aa26330a25e72ccec980f7a (diff) | |
download | ruby-0de3bc92b4fc3bb9fc0930e98baed37044ed44e1.tar.gz |
[ruby/irb] Make $ and @ default aliases
(https://github.com/ruby/irb/pull/438)
https://github.com/ruby/irb/commit/0613589476
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/init.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 09099f88b7..8c9d473b74 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -159,7 +159,10 @@ module IRB # :nodoc: @CONF[:AT_EXIT] = [] - @CONF[:COMMAND_ALIASES] = {} + @CONF[:COMMAND_ALIASES] = { + :'$' => :show_source, + :'@' => :whereami, + } end def IRB.set_measure_callback(type = nil, arg = nil, &block) |