Re: history not always history
Andrew Borodin via mc <[email protected]> Sun, 06 Aug 2023 17:52:09 +0300
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 6 Aug 2023 08:18:30 -0500 Rob McGee via mc <[email protected]> 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 -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc