aboutsummaryrefslogtreecommitdiffstats
path: root/dayplan.ksh
blob: b546a5e05dc60031fa8a90d378cd882201c6b9b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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