summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xmain.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 9b5a5ba8..8acd2d4b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,6 @@ htmlcov
# mypy plugin for PyCharm
dmypy.json
dmypy.sock
+
+# cmd2 history file used in main.py
+cmd2_history.txt
diff --git a/main.py b/main.py
index 7aaec3a3..56383f66 100755
--- a/main.py
+++ b/main.py
@@ -7,6 +7,6 @@ if __name__ == '__main__':
# Set "use_ipython" to True to include the ipy command if IPython is installed, which supports advanced interactive
# debugging of your application via introspection on self.
- app = cmd2.Cmd(use_ipython=True)
+ app = cmd2.Cmd(use_ipython=True, persistent_history_file='cmd2_history.txt')
app.locals_in_py = True
app.cmdloop()