[mc] Preserved things

Andrew Borodin aborodin at vmail.ru
Sun Nov 2 16:50:53 UTC 2025


On Sun, 2 Nov 2025 17:24:50 +0100 mi via mc <mc at lists.midnight-commander.org> wrote:
> 
> Is there a way to make mc / mcedit / mcview 'forget' about internally saved pathes ? Like last pwd, opened files ...
> 
> Ideally a setting to do that when closing, second choice a commandline option, but if nothing helps then a key combo. But i'm really looking for some automagic. 

There are two ways:

1. Set num_history_items_recorded=0 in the ini file if you want to keep your current settings.

2. Define MC_PROFILE_ROOT environment variable for temporary mc environment (see man mc for details).
If this variable is set, mc creates a new profile with default settings at start. After mc close,
you can just delete this directory.

-- 
Andrew



More information about the mc mailing list