Midnight commander: Exit mc to the last working directory

Add the following to your .bashrc:

source /usr/share/mc/bin/mc.sh

For details, see:

man mc

Check the description of option -P