linamh/app-misc/mc/files/chdir-4.6.0.gentoo

12 lines
159 B
Plaintext
Raw Normal View History

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;
}