From 523a172e23cca0ebb3b9dafeb0b52b87236d6029 Mon Sep 17 00:00:00 2001 From: sjanusz-r7 Date: Tue, 19 Nov 2024 13:02:06 +0000 Subject: [PATCH] Load Readline without a conditional --- lib/msf/ui/console/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/driver.rb b/lib/msf/ui/console/driver.rb index c5b45b61f582..bc42cb1a4cb9 100644 --- a/lib/msf/ui/console/driver.rb +++ b/lib/msf/ui/console/driver.rb @@ -62,7 +62,7 @@ class Driver < Msf::Ui::Driver # @option opts [Boolean] 'SkipDatabaseInit' (false) Whether to skip # connecting to the database and running migrations def initialize(prompt = DefaultPrompt, prompt_char = DefaultPromptChar, opts = {}) - setup_readline if opts['Readline'] + setup_readline histfile = opts['HistFile'] || Msf::Config.history_file