From 725ecc4f1fc14e78b3e15bfe720be2a6bfe99287 Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Mon, 24 Jun 2024 18:04:33 +0200 Subject: [PATCH] Fixes #59 --- smbclientng/core/InteractiveShell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smbclientng/core/InteractiveShell.py b/smbclientng/core/InteractiveShell.py index 953e9d6..bcae628 100644 --- a/smbclientng/core/InteractiveShell.py +++ b/smbclientng/core/InteractiveShell.py @@ -101,6 +101,7 @@ def run(self): for line in f.readlines(): try: self.logger.print("%s%s" % (self.__prompt(), line.strip())) + readline.add_history(line.strip()) self.process_line(commandLine=line.strip()) except KeyboardInterrupt as e: self.logger.print()