mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
3e4bac0140
"export -f" to have mc() exported. * doc/mc.1.in: Changed description of the "-P" option to avoid inclusion of mc.sh and mc.csh into the manual. Corrected paths of mc.hlp, mc.no_proxy and ~/mc/Tree.
13 lines
197 B
Bash
13 lines
197 B
Bash
mc ()
|
|
{
|
|
mkdir -p $HOME/.mc/tmp 2> /dev/null
|
|
chmod 700 $HOME/.mc/tmp
|
|
MC=$HOME/.mc/tmp/mc-$$
|
|
@prefix@/bin/mc -P "$@" > "$MC"
|
|
cd "`cat $MC`"
|
|
rm -f "$MC"
|
|
unset MC;
|
|
}
|
|
|
|
export -f mc
|