Creates a virtual host for apache by adding a .conf file to your sites-available and editing toy /etc/hosts.
Save the vhc.sh
file to /usr/bin
sudo vhc.sh SERVER_NAME PATH
E.g
sudo vhc.sh foo.dev /var/www/html/foo/public
Be happy :D
Create a general command like vh
and add option for creating and deleting hosts.
E.g
sudo vh.sh -c foo.dev /var/www/html/foo/public
sudo vh.sh -d foo.dev