Skip to content

Instantly share code, notes, and snippets.

@mreidsma
Created June 28, 2013 16:53
Show Gist options
  • Select an option

  • Save mreidsma/5886174 to your computer and use it in GitHub Desktop.

Select an option

Save mreidsma/5886174 to your computer and use it in GitHub Desktop.
Easy way to add appointments to the UNIX calendar
#! /bin/bash
GREEN="${BOLD}$(tput setaf 6)"
BOLD="$(tput bold)"
ALL_OFF="$(tput sgr0)"
function schedule()
{
echo -e "\n${GREEN}Schedule a new appointment:${ALL_OFF}"
read -p "${BOLD}Date:${ALL_OFF} " DATE
read -p "${BOLD}Description:${ALL_OFF} " DESCRIPTION
echo -e ${DATE}'\t'${DESCRIPTION} >> ~/Dropbox/todo/calendar;
}
schedule
@mreidsma
Copy link
Copy Markdown
Author

It's here as an executable (don't forget to chmod +x schedule) but yes thank you UNIX fanboys I already have the function in my .bash_profile thank you:

https://github.com/mreidsma/dotfiles/blob/master/bash/functions/schedule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment