Created
September 29, 2017 09:13
-
-
Save sidgwick/b7215c346d567f0e8029f3d5043ed4a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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