aboutsummaryrefslogtreecommitdiffstats
path: root/dayplan.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'dayplan.ksh')
-rwxr-xr-xdayplan.ksh30
1 files changed, 30 insertions, 0 deletions
diff --git a/dayplan.ksh b/dayplan.ksh
new file mode 100755
index 0000000..b546a5e
--- /dev/null
+++ b/dayplan.ksh
@@ -0,0 +1,30 @@
+#!/bin/ksh
+
+# our target file
+DATE=$(date +\%Y-\%m-\%d)
+TODAY_PLANNER=~/Notes/journal/day_plans/$DATE.txt
+
+if [[ -a $TODAY_PLANNER ]]
+then
+ vim "$TODAY_PLANNER"
+else
+ touch "$TODAY_PLANNER"
+ {
+ echo -e "Date: $DATE
+
+Goal for Today: [replace this with your goal]
+---
+
+08:45 - 09:10 - Sophie to school
+09:15 - 09:30 - Email
+09:30 - 10:00 -
+10:00 - 11:00 -
+11:00 - 12:00 -
+12:15 - 13:00 - Lunch
+13:00 - 14:00 -
+14:00 - 15:00 -
+15:00 - 16:00 -
+16:00 - 17:00 - "
+ } > "$TODAY_PLANNER"
+ vim "$TODAY_PLANNER"
+fi