Shell History Location


76
views
0
15 days ago by
I would like to clear my python shell history, where does Wing keep this information? I've looked in the Settings Directory and and Cache Directory.

Edit: The "Clear" option does clear the console and the "Restart Shell" option does restart the shell, which also clears the console output. But neither of those clear the input history. I can still "up arrow" through my input history. Restarting the Wing process does clear the input history so this is a sufficient workaround for me.

Version: 5.1.12
OS: Win 10
Community: Wing Python IDE

2 Answers


2
14 days ago by
The shell history is stored in your project files.  Wing's project files are .ini style text files so they can be looked at and modified with a text editor.  The python shell history is stored in the value of the 'debug.shell-history' key and the debug probe history is in the value of the 'debug.debug-probe-history' key.
The python-shell.history is written on project close | save. So as long as the same project is successfully reopened and saved it will overwrite the history, which is good enough for my use case (keeping sensitive info out of file system).
written 14 days ago by Max Slimmer  
0
15 days ago by
Do you mean clear the previous activity from the view?  In that case, it's Clear in the shell's Options menu.  Or Restart Shell to also start with a new blank slate.
I've edited my original post. Your answer led me to check what happens on a restart and that behavior is "good enough" for me. The use case was clearing sensitive data, like passwords, that were echoed to the terminal but also kept in input history. Thank you.
written 15 days ago by Max Slimmer  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »