Created
June 28, 2013 16:53
-
-
Save mreidsma/5886174 to your computer and use it in GitHub Desktop.
Easy way to add appointments to the UNIX calendar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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