Skip to content

Instantly share code, notes, and snippets.

@DestyNova
Last active March 26, 2018 21:50
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 DestyNova/597c419821e6aa48ab2e5b2f1472a42f to your computer and use it in GitHub Desktop.
Save DestyNova/597c419821e6aa48ab2e5b2f1472a42f to your computer and use it in GitHub Desktop.
Handy aliases/miniscripts (in zsh format)
# load existing pre-zsh profile
emulate sh -c '. ~/.profile'
# make a directory and cd into it
mkd () { mkdir $1 && cd $1 }
# verbally remind me of something after N minutes
# Examples:
# $ remind_after 5 tea
# $ remind_after 25 "pomodoro break"
# $ remind_after 60 "that's enough Youtube videos for now"
remind_after () { echo "espeak \"$2\"" | at now + $1 minutes }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment