[mc] history not always history
Andrew Borodin
aborodin at vmail.ru
Sun Aug 6 14:52:09 UTC 2023
On Sun, 6 Aug 2023 08:18:30 -0500 Rob McGee via mc <mc at lists.midnight-commander.org> wrote:
> On 2023-08-05 21:00, mi via mc wrote:
> >
> > It rather looks like erase history with Shift+H then Shift+Delete does not delete
> > anything in ~/.local/share/mc/history ... and ~/.config/ini other_dir has one very
> > old entry, it seems like an artefact.
>
> My thought (and this would have fit better in the other thread) would be to put
> your $HOME on tmpfs. Your history saves normally, and it's usable from session to session,
> until a reboot.
There is another way, not so extreme. You can define environment variable $MC_ROOT_PROFILE
with the path to the directory where _all_ mc user files will be located (see man mc for details):
$ MC_PROFILE_ROOT=/home/andrew/mc-tmp-root mc -F
Home directory: /home/andrew
Profile root directory: /home/andrew/mc-tmp-root
[System data]
Config directory: /etc/mc/
Data directory: /usr/share/mc/
File extension handlers: /usr/lib/mc/ext.d/
VFS plugins and scripts: /usr/lib/mc/
extfs.d: /usr/lib/mc/extfs.d/
fish: /usr/lib/mc/fish/
[User data]
Config directory: /home/andrew/mc-tmp-root/.config/mc/
Data directory: /home/andrew/mc-tmp-root/.local/share/mc/
skins: /home/andrew/mc-tmp-root/.local/share/mc/skins/
extfs.d: /home/andrew/mc-tmp-root/.local/share/mc/extfs.d/
fish: /home/andrew/mc-tmp-root/.local/share/mc/fish/
mcedit macros: /home/andrew/mc-tmp-root/.local/share/mc/mc.macros
mcedit external macros: /home/andrew/mc-tmp-root/.local/share/mc/mcedit/macros.d/macro.*
Cache directory: /home/andrew/mc-tmp-root/.cache/mc/
Just remove this directory after exiting mc.
--
Andrew
More information about the mc
mailing list