- 7.0.0-rc.2
- Solved
- Annoyance
in older version of mc we had settings applied to its user shell meaning i traversed a directory in mc if i quite the shell was in the directory
beta 3 seems to be missing that config. I'm not sure why the chage to the mc applicaiton.
Researching more into it on other linux distros, as I prefer that setting/
To enable mc to Use the Subshell: In your mc configuration file (usually ~/.config/mc/ini or ~/.mc/ini), make sure the following option is set:
ini
[Midnight-Commander] use_subshell=1
Check Your Shell Configuration: This setting only works if your terminal shell supports the chdir command when called from a subshell. It works well with bash and zsh, but for other shells like sh, it may not behave as expected.
Run mc as a Shell Function: Another way to achieve the same effect is to use a shell function that preserves the working directory. Add this to your ~/.bashrc or ~/.zshrc:
mc() { /usr/bin/mc "$@" cd "$(cat ~/.config/mc/mc.pwd.$$)" || return }
This function will update the terminal’s directory after you exit mc based on its last known path.
Restart your terminal or source your shell configuration file after making these changes:
source ~/.bashrc # or ~/.zshrc
minor annoyance
https://stackoverflow.com/questions/39017391/how-to-make-midnight-commander-exit-to-its-current-directory