Make midnight commander exit to the working directory instead of to where you started

Add the following line to ~/.bashrc:

. /usr/lib/mc/mc.sh

Older Linux versions:

. /usr/libexec/mc/mc.sh