File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/msf/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ def initialize(driver)
137
137
@cache_payloads = nil
138
138
@previous_module = nil
139
139
@module_name_stack = [ ]
140
+ @history_limit = 100
140
141
end
141
142
142
143
#
@@ -480,7 +481,7 @@ def cmd_exit(*args)
480
481
481
482
def cmd_history ( *args )
482
483
483
- limit = 100
484
+ limit = @history_limit
484
485
length = Readline ::HISTORY . length
485
486
486
487
@@history_opts . parse ( args ) do |opt , _idx , val |
@@ -507,7 +508,7 @@ def cmd_history_help
507
508
print_line "Usage: history [options]"
508
509
print_line
509
510
print_line "Shows the command history."
510
- print_line "If -n is not set, it will only be shown the last 100 commands"
511
+ print_line "If -n is not set, it will only be shown the last #{ @history_limit } commands"
511
512
print_line
512
513
print @@history_opts . usage
513
514
end
You can’t perform that action at this time.
0 commit comments