Skip to content

Instantly share code, notes, and snippets.

View zbabtkis's full-sized avatar

Zachary Babtkis zbabtkis

View GitHub Profile
# This function does three things:
# 1. Cretes a directory for $sitename
# 2. Creates a hosts entry for $sitename
# 3. Creates a virtual-hosts entry for $sitename
#
# Note: Be careful with this function if you aren't comfortable
# with editing these system files yourself. If you enter a url you
# actiually use, say google.com, then whenever you try to go to
# google.com your browser will be pointed to your local google site
# at $HOME/Sites/google.com