mc, bash y cambiando directorios

Si quieres cambiar al directorio actual de Midnight Commander cuando acabes su ejecución somplemente copia esta función en tu .bashrc:

 mc ()
     {
       mkdir -p ~/.mc/tmp 2> /dev/null
       chmod 700 ~/.mc/tmp
       MC=~/.mc/tmp/mc-$$
       /usr/bin/mc -P "$@" > "$MC"
       cd "$(cat $MC)"
       rm -f "$MC"
       unset MC;
     }

y disfrútalo ;).

About the author

Óscar
has doubledaddy super powers, father of Hugo and Nico, husband of Marta, *nix user, Djangonaut and open source passionate.