Skip to content

Instantly share code, notes, and snippets.

@lmullen
Created September 15, 2012 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmullen/3728824 to your computer and use it in GitHub Desktop.
Save lmullen/3728824 to your computer and use it in GitHub Desktop.
A shell script to delay checking e-mail (or really, any action)
#!/bin/bash
# A shell script to convince me not to check my e-mail.
# Lincoln Mullen | http://lincolnmullen.com | lincoln@lincolnmullen.com
read -p "Do you really need to check your e-mail (y/n)? " yn
case $yn in
y|Y ) echo "You'll have to wait. CTRL+C to get back to work."; sleep 180; mutt;;
n|N ) exit;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment