8

Is it possible to configure the Midnight Commander (Ubuntu 10.10) to show certain file and directory names differently, e.g. all hidden (starting with a period) using grey color?

2

Under Options -> Panel Options select File highlight -> File types.

Midnight Commander Panel options screenshot

See man mc in the Colors section for ways to choose particular colors by adding entries in your ~/.config/mc/ini file. Unfortunately, there doesn't appear to be a keyword for hidden files.

  • Not only that there is no keyword for hidden files, I even have no success in changing an existing regex (e.g. for temp files) to match files/directories starting with a period. – Mike L. Feb 15 '12 at 18:43
  • 1
    How exactly can entries be added to ~/.config/mc/ini? I managed to add them to ~/.config/mc/filehighlight.ini, but then you have to copy/paste there the default ones. For syntax highlight, there's ~/.config/mc/mcedit/Syntax. – Dan Dascalescu Feb 20 '18 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.