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

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.