File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,10 @@ def IRB.init_config(ap_path)
159
159
160
160
@CONF [ :AT_EXIT ] = [ ]
161
161
162
- @CONF [ :COMMAND_ALIASES ] = { }
162
+ @CONF [ :COMMAND_ALIASES ] = {
163
+ :'$' => :show_source ,
164
+ :'@' => :whereami ,
165
+ }
163
166
end
164
167
165
168
def IRB . set_measure_callback ( type = nil , arg = nil , &block )
Original file line number Diff line number Diff line change @@ -551,7 +551,6 @@ def test_whereami
551
551
def test_whereami_alias
552
552
out , err = execute_lines (
553
553
"@\n " ,
554
- conf : { COMMAND_ALIASES : { :'@' => :whereami } }
555
554
)
556
555
assert_empty err
557
556
assert_match ( /^From: .+ @ line \d + :\n / , out )
@@ -563,7 +562,6 @@ def test_vars_with_aliases
563
562
out , err = execute_lines (
564
563
"@foo\n " ,
565
564
"$bar\n " ,
566
- conf : { COMMAND_ALIASES : { :'$' => :show_source , :'@' => :whereami } }
567
565
)
568
566
assert_empty err
569
567
assert_match ( /"foo"/ , out )
You can’t perform that action at this time.
0 commit comments