For when self-control isn't enough: lock down your shell from distractions!
Go to file
Audrey ef2e9994f3 Initial commit 2025-11-13 12:09:38 -07:00
LICENSE Initial commit 2025-11-13 12:09:38 -07:00
README.md Initial commit 2025-11-13 12:09:38 -07:00
cwdcontrol.sh Initial commit 2025-11-13 12:09:38 -07:00

README.md

cwdcontrol

For when self-control isn't enough, try cwdcontrol!

This script will prevent you from working in directories based on a time expression.

Dependencies

Either systemd or cronie. This script probably only works with zsh.

Usage

Put in your zshrc:

source /path/to/cwdcontrol.sh
cwdcontrol-disallow --cron '* 9-17 * * 1-5' ~/distracting
cwdcontrol-disallow --systemd 'Mon..Fri *-*-* 09..17:*:*' ~/other/distracting