RTFM
Kód:
       -P file, --printwd=file
              Print the last working directory to the  specified  file.   This
              option  is  not  meant  to be used directly.  Instead, it's used
              from a special shell script that automatically changes the  cur-
              rent  directory  of the shell to the last directory the Midnight
              Commander was in.  Source the file /usr/share/mc/bin/mc.sh (bash
              and  zsh users) or /usr/share/mc/bin/mc.csh (tcsh users) respec-
              tively to define mc as an alias to the appropriate shell script.
t.j.
Kód:
cat /usr/share/mc/bin/mc.sh >> ~/.bash_profile
alebo mc.csh podla
Kód:
echo $SHELL