Set Which Command to Run for Specific File Type in Midnight Commander

Create command

  • Menu >> Command >> Edit extension file
  • Go to '### Includes' section at bottom of file
  • Add open with Bash:
include/bash
    Open=/bin/bash %f

Bind a file type to command

  • Menu >> Command >> Edit extension file
  • Go to '### Documents' section roughly above Includes section
  • Add a file type to open with include/bash:
shell/i/.sh
    Include=bash

You'll only receive email when they publish something new.

More from 19411
All posts