A Bash Shell script to automate setting up a virtual host in MAMP.
Assumes a standard installation of MAMP in Applications folder, and assumes that local development sites will have a .local TLD (you can edit the TLD variable if you want a different TLD).
Usage: sudo sh newsite.sh
Or make executable with: chmod a+x newsite.sh then to run type: sudo ./newsite.sh