3

After installing Midnight Commander in CentOS 7, I looked for the configuration file in /home/$USER/.mc.ini but didn't find it. I want to change my default skin to another color scheme, but can't find config file.

3 Answers 3

5

It's in the following file: ~/.config/mc/ini.

0
0

According to the Save setup section of the man page,

At startup, Midnight Commander tries to load initialization information from the
~/.config/mc/ini file. If this file doesn't exist, the system-wide file
/etc/mc/mc.ini is used. If this file doesn't exist, the system-wide file
/usr/share/mc/mc.ini is used. If this file doesn't exist, MC uses the default settings.

If Midnight commander is properly installed on the system, one of those system-wide ini–files should be available. Just copy it under ~/.config/mc/ini and start customisation from there.

-1

If you have not made any changes, the config file does not yet exist.

The easy way to change from the default skin:

  1. Start Midnight Commander

    sudo mc 
  2. F9, O for Options, or cursor to "Options" and press Enter

  3. A for Appearance, or cursor to Appearance and press Enter

    You will see that default is the current skin.

  4. Press Enter to see the other skin choices

  5. Cursor to the skin you want and select it by pressing Enter

  6. Click OK

After you do this, the ini file will exist and can be edited, but it is easier to change skins using the method I described.

4
  • 1
    There is no Appearance menu under Options. Commented Apr 23, 2018 at 5:26
  • Nope, indeed... 4.8.7-11.el7 Commented Dec 3, 2019 at 11:35
  • 1
    why one should use sudo to run mc? Commented Jul 28, 2024 at 16:00
  • Why the downvote? The Appearance menu item is available in mc, at least in versions 4.8.24 and 4.8.32. The answer author should not be punished for using a different version that a OP, who never specified his. Commented Jun 15 at 11:44

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.