summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-27 13:15:52 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-27 13:17:06 -0400
commit848372592577f02e03c063c6ec29a349a0f40071 (patch)
tree51cd507f54db0c03e14cbcc97f54812891d561f9 /main.py
parent7b9a51aed8d8e5b06eaa69f5d9ca8850a11e0e93 (diff)
downloadcmd2-git-848372592577f02e03c063c6ec29a349a0f40071.tar.gz
Added persistent history file to main.py
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
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()