Re: multiple configs



On Sat, 28 Nov 2009, Yury V. Zaytsev wrote:

To: /dev/rob0 <rob0 gmx co uk>
From: Yury V. Zaytsev <yury shurup com>
Subject: Re: multiple configs

On Sat, 2009-11-28 at 13:42 -0600, /dev/rob0 wrote:
On Sat, Nov 28, 2009 at 02:08:53PM -0500, MK wrote:
Is it possible to start mc with an alternate .ini file?  Judging
by the man page, I suspect not, but I have to ask.

I found out with a simple experiment:
    $ mkdir mc-test # not strictly necessary but it helps
    $ HOME=$HOME/mc-test mc

What about creating a hard link in the .mc/ directory to the required configuration file in same directory.
Name the hard-link 'ini' and point it mc-ini-whatever?

I tried this and it works. The only thing is when you edit and save the ini file in using mc itself, using the 'hard link' the following message appears:

┌────────────────── Warning ───────────────────┐
│  File has hard-links. Detach before saving?  │
│                                              │
│         [ Yes ]  [ No ]  [ Cancel ]          │
└────────────────────────────────────────┘

Kind Regards,

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net

All email addresses are challenge-response protected with
TMDA [http://tmda.net]

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tract_pdf/english/130.pdf
-----------------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]