summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/completions/_gtd4
-rw-r--r--etc/functions/gtd6
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/completions/_gtd b/etc/completions/_gtd
new file mode 100644
index 0000000..85e2428
--- /dev/null
+++ b/etc/completions/_gtd
@@ -0,0 +1,4 @@
+#compdef gtd
+
+_arguments -s \
+ '1:action:(todo waiting)'
diff --git a/etc/functions/gtd b/etc/functions/gtd
new file mode 100644
index 0000000..421ff9c
--- /dev/null
+++ b/etc/functions/gtd
@@ -0,0 +1,6 @@
+## vim:ft=zsh
+
+case $1 in
+ todo) todo --database ~/var/gtd/todo ;;
+ waiting) todo --database ~/var/gtd/waiting-for ;;
+esac