Skip to content

Instantly share code, notes, and snippets.

@peterlozano
Last active August 29, 2015 13:57
Show Gist options
  • Save peterlozano/9589772 to your computer and use it in GitHub Desktop.
Save peterlozano/9589772 to your computer and use it in GitHub Desktop.
ipv6 entries in /etc/hosts for MAMP
#!/bin/sh
cp /etc/hosts /tmp/hosts
grep MAMP /etc/hosts | sed -e 's/127.0.0.1/::1/' >> /tmp/hosts
cp /tmp/hosts /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment