summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-06 14:47:13 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-06 14:47:13 +0200
commit88f4714dd32128bf911d44edaf5b234ac8b936e6 (patch)
treecf834e8952aaeb50fc3f027e862f94a1e4c9d1c2 /etc/functions
parentff30826e2cb384d9651e837296e4fc025c7d69e1 (diff)
Update location stuff & simplify gtd-all while at it
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/gtd-all26
1 files changed, 2 insertions, 24 deletions
diff --git a/etc/functions/gtd-all b/etc/functions/gtd-all
index 3cbdde5..e768ad7 100644
--- a/etc/functions/gtd-all
+++ b/etc/functions/gtd-all
@@ -1,32 +1,10 @@
## vim:ft=zsh
## concatenate all GTD databases
-## usage: gtd-all [--force] [devtodo options]
+## usage: gtd-all [devtodo options]
typeset prefix=~/var/gtd
typeset database
-typeset -i force
-
-while [[ ${1} == -* ]] {
- case ${1} in
- -|--) shift; break ;;
- --force) force=1 ;;
- esac
- shift
-}
-
-function gtd_grep {
- if (( force )) {
- cat
- return 0
- }
- if [[ -r ~/var/tmp/.actual-location && $(<~/var/tmp/.actual-location) == offline ]] {
- fgrep -v '@online'
- return 0
- }
- cat
- return 0
-}
for database in ${prefix}/*(.N); {
echo "\n${database:t}"
- todo --database ${database} ${*} | gtd_grep
+ todo --database ${database} ${*}
}