4 ms·
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 .
by maxschumacher91 10y 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"
- curiousgal 10y agoAwesome! Thanks.