mkscript - test script creator

I usually do something wrong when I create test scripts (typo in shebang, not executable, missing open PHP tag, etc) so I wrote a small tool called mkscript that can create them for me.

Basically, instead of doing:

$ echo '#!/usr/bin/python' >
$ chmod a+x

You just do:

$ mkscript

It knows how to create scripts for bash, perl, php, python, and ruby based on the extension you provide. You can get it here.

Pair it with this vim function to execute the current file and you have a really quick way to create and run test scripts!