Creating .mailcap and .mime.types

Create the files with vi or some other editor and insert the following lines:

into .mailcap:

application/x-sh; sh %s

and

into .mime.types:

application/x-sh sh