[juneau-lug] Re: How to make midnight commander remember last directory

  • From: Kevin Miller <Kevin_Miller@xxxxxxxxxxxxxxx>
  • To: "'juneau-lug@xxxxxxxxxxxxx'" <juneau-lug@xxxxxxxxxxxxx>
  • Date: Tue, 23 Nov 2010 14:02:42 -0900

Mark Neyhart wrote:
> As discussed at the latest JLUG meeting, here is how I make midnight
> commander change to the last used directory when it is exited. 
> 
> You want to add this alias to /etc/profile or a user specific profile.
> 
> alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
> 
> 
> 
> What mc-wrapper.sh does is call mc with the -P PathFileName option.
> The -P option causes mc to write the last used directory name to the
> specifed file upon exit.  The script then uses the file to change to
> that directory.  This works with Debian Lenny.

Thanks Mark.  
For those w/short memories, the other indispensible (to me at least) thing we 
mentioned was findutils-locate...


...Kevin
-- 
Kevin Miller                Registered Linux User No: 307357
CBJ MIS Dept.               Network Systems Admin., Mail Admin.
155 South Seward Street     ph: (907) 586-0242
Juneau, Alaska 99801        fax: (907 
586-4500------------------------------------
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: