1 2 3 4 5 6 7 8 9 10 11
MC () { mkdir -p $HOME/.mc/tmp 2> /dev/null chmod 700 $HOME/.mc/tmp MC=$HOME/.mc/tmp/mc-$$ /usr/bin/mc -P "$MC" cd "`cat $MC`" rm -f "$MC" unset MC; }