Created
March 31, 2015 16:53
-
-
Save mhemmings/b44d7466bd2bef12a80b to your computer and use it in GitHub Desktop.
Block Facebook and Twitter in your hosts file with one command: 'work'
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
alias work='echo -e "127.0.0.1 www.facebook.com\n127.0.0.1 twitter.com" | sudo tee -a /etc/hosts > /dev/null' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Block twitter.com