Skip to content

Instantly share code, notes, and snippets.

@sidgwick
Created September 29, 2017 09:13
Show Gist options
  • Save sidgwick/b7215c346d567f0e8029f3d5043ed4a9 to your computer and use it in GitHub Desktop.
Save sidgwick/b7215c346d567f0e8029f3d5043ed4a9 to your computer and use it in GitHub Desktop.
#!/bin/bash
hosts_url='https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts'
sed -e "/# Copyright/,$ d" -i /etc/hosts
curl -s $hosts_url >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment