-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·61 lines (47 loc) · 1.34 KB
/
setup.sh
File metadata and controls
executable file
·61 lines (47 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
GTDDIR=~/gtd
CONFIGDIR=~/.config
mkdir -p "${CONFIGDIR}/gtd"
mkdir -p "${GTDDIR}/tickler/repeating"
mkdir -p "${GTDDIR}/Projects"
mkdir -p "${GTDDIR}/Completed"
mkdir -p ~/bin
cat > "${CONFIGDIR}/gtd/config" << EOF
GTDDIR=${GTDDIR}
EOF
cp day n nextactions project tick ~/bin
cp insert_entry.py update_repeating "${GTDDIR}/tickler/"
for month in january february march april may june july august september \
october november december; do
touch "${GTDDIR}/tickler/$month"
done
touch "${GTDDIR}/next_actions.otl"
touch "${GTDDIR}/done.otl"
fmt() {
printf "%02d" $1
}
for i in `seq 1 $y`; do
x=$(fmt $y)
touch "${GTDDIR}/tickler/$x"
done
cat > "${GTDDIR}/tickler/repeating/bills" << EOF
# Rules for inserting entries into the tickler files
# happen here
# For instance:
# Pay rent on first of month
D 1 Pay rent
# Look over all GTD projects on Tuesdays:
W Tuesday 3pm 4pm Look over GTD Projects (p list)
# File taxes on April 5
A April 5 Pay taxes
EOF
cat >> ~/.bashrc << EOF
alias p=project
[ -e $HOME/gtd_bash_completion ] && . $HOME/gtd_bash_completion
EOF
cat vimrc >> ~/.vimrc
cp gtd_bash_completion $HOME/gtd_bash_completion
echo "GTD is setup."
echo "Manage GTD projects with ~/bin/project (alias 'p')"
echo "Use 'tick' to view today's tickler files"
echo "See http://github.com/hallyn/gtdtools for more information"