summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-15 12:45:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-15 12:45:09 +0200
commitd337d13182d98f5de9c4d436c24ba979485c4339 (patch)
treeae7ff26d897066d183d185fbf9247ac98aeb79bb
parente0792ae745dfacbf858268f062d5779de3d1bc9e (diff)
info: Show gtd-waiting for current location
-rwxr-xr-xhelpers/info6
1 files changed, 4 insertions, 2 deletions
diff --git a/helpers/info b/helpers/info
index 452e64e..b4b3ad3 100755
--- a/helpers/info
+++ b/helpers/info
@@ -1,5 +1,7 @@
#!/usr/bin/env zsh
-[[ -n $commands[todo] ]] && [[ -r ~/var/gtd/todo ]] && \
+[[ -n $commands[todo] ]] && [[ -r ~/var/gtd/todo ]] && \
todo --database /home/derf/var/gtd/todo
-[[ -n $commands[calendar] ]] && [[ -r ~/stuff/calendar ]] && calendar
+[[ -n $commands[todo] ]] && [[ -r ~/var/gtd/waiting ]] && \
+ todo --database ~/var/gtd/waiting | fgrep "$(cat /tmp/.location)"
+[[ -n $commands[calendar] ]] && [[ -r ~/stuff/calendar ]] && calendar
true