https://github.com/reimertz/letswork
👷♀️ A CLI tool to disable distractions when you need to focus
https://github.com/reimertz/letswork
Last synced: 5 months ago
JSON representation
👷♀️ A CLI tool to disable distractions when you need to focus
- Host: GitHub
- URL: https://github.com/reimertz/letswork
- Owner: reimertz
- Created: 2015-01-06T23:38:18.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T09:39:20.000Z (about 8 years ago)
- Last Synced: 2025-08-04T01:13:39.816Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 29
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
letswork / letsfun
=====
letswork / letsfun is a tool that will help you be more effective
by giving you the ability to block all those sites that consumes
all your time (facebook, 9gag, reddit, twitter..).
It's all done by adding/removing some magic lines to your
hosts file.
**Caution:** I strongly suggest that you backup your hosts file
```bash
sudo cp -npRv "/etc/hosts" "/etc/hosts_letswork_backup_$(date +"%m_%d_%Y")"
```
##Installation
```bash
sudo npm install -g letswork
```
*need root privileges since it's editing /etc/hosts
##Usage
```bash
letswork --help
Usage: letswork -- block all
letswork -- to allow certain homepages for work-related tasks ;)
letswork --list --l -- shows list of blockable homepages
letswork --help --h -- shows this help
Usage: letsfun -- unblock all
letsfun -- keep some blocked
letsfun -h --h -- shows this help
where is one of:
9gag,facebook,reddit,twitter
Example: letswork twitter -- keeps twitter unblocked
letsfun facebook -- keeps facebook blocked
```