Hi!

I would like that MC remember last directory it was
in.
So I have add:

if [ -f /usr/lib/mc/bin/mc.sh ]; then
. /usr/lib/mc/bin/mc.sh
fi

to my .bashrc where mc.sh is:

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;
}
export -f mc &>/dev/null

But is doesn't work. Is there anything more to add
(change)?


Mike

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to