Hasty Briefsbeta

Bilingual

Self-imposed ban – a lightweight bash script to block commands

10 months ago
  • #productivity
  • #time-management
  • #bash-script
  • A lightweight Bash script called 'ban' helps block distracting commands until a specified date.
  • Download and install the script by placing it in your ~/bin directory and making it executable.
  • Ban commands with optional reasons and expiration dates (defaults to 40 days if no date is provided).
  • Unban commands by removing them from the ~/.bans directory.
  • View current bans by listing the contents of the ~/.bans directory.
  • Uninstall the script by removing the ban file and the ~/.bans directory.
  • Contributions for improvements or new features are welcome via issues or pull requests.