Skip to content

Commit

Permalink
Merge pull request #62 from p0dalirius/Add-lines-from-startup-script-…
Browse files Browse the repository at this point in the history
…to-history-file

[enhancement] Add lines from startup script to history file, Fixes #59
  • Loading branch information
p0dalirius authored Jun 24, 2024
2 parents 5820708 + 725ecc4 commit cbeeabd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions smbclientng/core/InteractiveShell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cbeeabd

Please sign in to comment.