Without any DE or even X, I want to use
./my.exe to run
mono my.exe, like it works with python scripts.
Bash has no such feature. Zsh does, you can set up aliases based on extensions:
This would only work in an interactive shell, however, not when a program invokes another.
Under Linux, you can set up execution of foreign binaries through the binfmt_misc mechanism; see Rolf Bjarne Kvinge. Good Linux distributions set this up automatically as part of the mono runtime package.
If you can't use binfmt_misc because you don't have root permissions, you'll have to settle for wrapper scripts.
Put the wrapper script in the same directory as the
You might be able to embed the file inside a bash script using the following guide http://www.linuxjournal.com/content/add-binary-payload-your-shell-scripts
It is possible:
(from here: http://mono-project.com/Guide)
Note that this is not the recommended way, read the above mentioned Guide page and also the page on how to do application deployment for mono applications.