View previous topic :: View next topic |
Author |
Message |
DriveTime n00b
Joined: 10 Aug 2002 Posts: 2 Location: England
|
Posted: Mon Aug 12, 2002 11:16 am Post subject: Midnight Commander and exiting into current directory |
|
|
I use Midnight Commander as my main file manager on all versions of Linux, and on every other distro, i can exit into the last directory visited, this is the way i like MC setup.
On gentoo however, this is not the case, i realise that the mc.sh script on a RedHat box does this, but how can i implement it on gentoo ?.
I seem to remember when building a LinuxFromScratch system that i had to specifically compile this feature, does anyone know if the binaries created by emere mc does this.
All comments gratefully recieved (except RTFM, cos ive done that already). _________________ WWW.DriveTime.biz Recycled Computer hard drives put to a novel use. |
|
Back to top |
|
|
batnator Tux's lil' helper
Joined: 04 Jul 2002 Posts: 93 Location: Berlin / Germany
|
Posted: Mon Aug 12, 2002 4:23 pm Post subject: put this in your profile |
|
|
first, please use the search function of the board. i didn't now who was the autor of the posting, but here is the code for your /etc/profile or other resourcefiles:
Code: |
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
|
have more fun |
|
Back to top |
|
|
DriveTime n00b
Joined: 10 Aug 2002 Posts: 2 Location: England
|
Posted: Tue Aug 13, 2002 1:32 pm Post subject: |
|
|
Thanks for the reply.
I did use the search facility, seems like i must have missed or skipped over this.
Anyway ill place this in the file you mentioned, thanks again. _________________ WWW.DriveTime.biz Recycled Computer hard drives put to a novel use. |
|
Back to top |
|
|
|