linamh/app-misc/mc/files/chdir-4.6.0.gentoo
geos_one 5f2f554e72 add mc
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@566 6952d904-891a-0410-993b-d76249ca496b
2008-11-15 13:23:55 +00:00

12 lines
159 B
Plaintext

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