Skip to content

Commit d11d031

Browse files
authored
Update README.md
1 parent 36bb37d commit d11d031

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ A simple bash script that makes it a breeze to block distracting websites.
77
brew tap mhgbrg/homebrew-tap
88
brew install blk
99

10+
To block websites `blk` adds a line to the computer's hosts file that redirects the website to localhost. Depending on the permissions on your hosts file, you might need to run the script with `sudo`. If you don't want to use `sudo`, you can change the permissions of the hosts file with `chmod 646 /etc/hosts` so that your user gets permission to write (this makes using the script **so** much more convenient).
11+
12+
Also make sure you have enabled the `atrun` daemon if you want to use automatic blocking/unblocking. See requirements for more info.
13+
1014
## Usage
1115

1216
To block a few websites:
@@ -52,8 +56,6 @@ You can also feed sites to `blk` through stdin, for example:
5256

5357
To use `blk` you need to have `bash` installed. I would recommend updating to the latest version if you haven't.
5458

55-
To block websites `blk` adds a line to the computer's hosts file that redirects the website to localhost. Depending on the permissions on your hosts file, you might need to run the script with `sudo`. If you don't want to use `sudo`, you can change the permissions of the hosts file with `chmod 646 /etc/hosts` so that your user gets permission to write (this makes using the script **so** much more convenient).
56-
5759
To use the `for` and `until` functionality you need to have the [`at`](http://manpages.ubuntu.com/manpages/xenial/en/man1/at.1.html) command installed and working. On macOS `at` is installed per default, but the `atrun` daemon is not running. To fix this, run `launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist` and restart your computer (see `man atrun` for more info).
5860

5961
## License

0 commit comments

Comments
 (0)