mc/lib/mc.sh.in

15 lines
234 B
Bash
Raw Normal View History

1998-02-27 07:54:42 +03:00
mc ()
{
mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 $HOME/.mc/tmp
MC=$HOME/.mc/tmp/mc-$$
@prefix@/bin/mc -P "$@" > "$MC"
1998-02-27 07:54:42 +03:00
cd "`cat $MC`"
rm -f "$MC"
1998-02-27 07:54:42 +03:00
unset MC;
}
if test -n "$BASH_VERSION"; then
export -f mc
fi