root user edit
/root/.bashrc and add the following line:
alias mc=". /usr/share/mc/bin/mc-wrapper.sh"
For others users,
.bashrc files are located in
File location depends on the distribution you use (e.g. in Gentoo, Suse, … is
/usr/libexec/mc/; in CentOS, Fedora, Ubuntu, … the path it is
Restart your shell to view the change.
Make Midnight Commander to exit to its current directory