summaryrefslogtreecommitdiff
path: root/app-misc/mc/files/chdir-4.6.0.gentoo
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/mc/files/chdir-4.6.0.gentoo')
-rw-r--r--app-misc/mc/files/chdir-4.6.0.gentoo11
1 files changed, 11 insertions, 0 deletions
diff --git a/app-misc/mc/files/chdir-4.6.0.gentoo b/app-misc/mc/files/chdir-4.6.0.gentoo
new file mode 100644
index 0000000..9332ba0
--- /dev/null
+++ b/app-misc/mc/files/chdir-4.6.0.gentoo
@@ -0,0 +1,11 @@
+
+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;
+}