diff --git a/.gitignore b/.gitignore index c19746a9..56925bba 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ docs/_build #VPCS vpcs.hist startup.vpcs +.gns3_shell_history diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index 8630f75c..ebfcd149 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -169,7 +169,7 @@ class WebServer: except ImportError: log.error("Unable to start a shell: the ptpython module must be installed!") return - yield from embed(globals(), locals(), return_asyncio_coroutine=True, patch_stdout=True) + yield from embed(globals(), locals(), return_asyncio_coroutine=True, patch_stdout=True, history_filename=".gns3_shell_history") def _exit_handling(self): """