Ask Your Question
1

Shell History Location

asked 2018-01-04 13:00:00 -0600

Max Slimmer gravatar image

updated 2019-03-13 08:50:38 -0600

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.12OS: Win 10

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2018-01-05 08:42:00 -0600

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.

edit flag offensive delete link more

Comments

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).

Max Slimmer gravatar imageMax Slimmer ( 2018-01-05 13:55:00 -0600 )edit
0

answered 2018-01-04 13:31:00 -0600

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.

edit flag offensive delete link more

Comments

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.

Max Slimmer gravatar imageMax Slimmer ( 2018-01-04 18:21:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-01-04 13:00:00 -0600

Seen: 201 times

Last updated: Mar 07