exit in current directory ?
Dmitry Semyonov
linulin at hotbox.ru
Mon Mar 29 20:32:27 UTC 2004
Hello raptor,
Saturday, March 27, 2004, 3:33:55 PM, you wrote:
> how to make mc exits in the dirrectory i'm in MC (after some browsing), rather in the directory from
> which I started MC.
Insert something like the following into your initialisation script
(i.e. .bash_profile):
# Allow Midnight Commander to quit into last used directory
if [ -f /usr/local/mc/share/mc/bin/mc.sh ]; then
. /usr/local/mc/share/mc/bin/mc.sh
elif [ -f /usr/local/share/mc/bin/mc.sh ]; then
. /usr/local/share/mc/bin/mc.sh
elif [ -f /usr/share/mc/bin/mc.sh ]; then
. /usr/share/mc/bin/mc.sh
fi
...Bye..Dmitry.
More information about the mc
mailing list