diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-27 13:15:52 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-27 13:15:52 -0400 |
commit | 221bdad25f014b38f2762cbbe684fa341add6d6c (patch) | |
tree | 9ae4565c8893e6e5d3aeb9d00fb172662f38f054 | |
parent | 82b76590141d09cf16a6681b2522a21608df5f18 (diff) | |
download | cmd2-git-221bdad25f014b38f2762cbbe684fa341add6d6c.tar.gz |
Added persistent history file to main.py
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | main.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -25,3 +25,6 @@ htmlcov # mypy plugin for PyCharm dmypy.json dmypy.sock + +# cmd2 history file used in main.py +cmd2_history.txt @@ -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() |