<div dir="ltr"><div>I usually enable the privacy option on GUI desktop systems / file managers, which prevents them from keeping a menu of recently accessed files and directories, because I find the feature more troublesome than useful.<br></div><div><br></div><div>In plain Bash terminals instead I use a "private window" concept, borrowed from web browsers. Whenever I'm about to work on private data I type 'unset HISTFILE', after which all following commands typed into that window won't be saved in .bash_history</div><div><br></div><div>Is there a similar option for mc? Either a global option to avoid saving activity history (such as recently accessed files, directories, and commands) or a temporary switch akin to "private window"?</div><div><br></div><div>Otherwise, has anybody come up with some hook or script to do that?</div><div><br></div><div>I took a look at the files kept by mc and I found the following:</div><div><br></div><div>~/.local/share/mc/history</div><div>~/.local/share/mc/filepos</div><div><div>~/.cache/mc/Tree</div></div><div><br></div><div>The first is the most troublesome file. I only want to keep the [user-fmt-input] and [mini_input] sections there (which are really configuration history, rather than activity history) and get rid of everything else. The second file contains activity history of recently edited files and the third contains the directories browsed using Tree view, so they need to go as well.</div><div><br></div><div>I just cleaned up those three files and gave them root:root 644 permissions, which seems to be doing the trick: it keeps them read-only with no visible error message. But I'm wondering if there's a better option out there.</div><div><br></div><div>Toby</div></div>