Hacker News new | ask | show | jobs
by maxschumacher91 3675 days ago
I've put them in my host file and created an alias that switches between naming the host-file "hosts" (which will be recognized by the OS) and hostx.

from my .zshrc:

#block Twitter, Facebook, reddit and Linkedin. alias on="sudo mv /etc/hostx /etc/hosts" alias off="sudo mv /etc/hosts /etc/hostx"

1 comments

Awesome! Thanks.