Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (9 sloc) 560 Bytes
#!/bin/bash
# to use this to automatically schedule SelfControl to turn on every day,
# save this script to /usr/local/bin and make it executable
# then open up `sudo crontab -e` and add something like this:
# 0 8 * * * /usr/local/bin/.selfcontrol.sh
defaults write org.eyebeam.SelfControl BlockDuration -int 480
defaults write org.eyebeam.SelfControl HostBlacklist -array twitter.com tweetdeck.twitter.com reddit.com
defaults read org.eyebeam.SelfControl
sudo /Applications/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl $(id -u $(whoami)) --install
You can’t perform that action at this time.