diff options
Diffstat (limited to 'etc/functions/gtd-all')
-rw-r--r-- | etc/functions/gtd-all | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/functions/gtd-all b/etc/functions/gtd-all index ddbfdba..3cbdde5 100644 --- a/etc/functions/gtd-all +++ b/etc/functions/gtd-all @@ -5,8 +5,8 @@ typeset prefix=~/var/gtd typeset database typeset -i force -while [[ $1 == -* ]] { - case $1 in +while [[ ${1} == -* ]] { + case ${1} in -|--) shift; break ;; --force) force=1 ;; esac @@ -26,7 +26,7 @@ function gtd_grep { return 0 } -for database in $prefix/*(.N); { +for database in ${prefix}/*(.N); { echo "\n${database:t}" - todo --database $database $* | gtd_grep + todo --database ${database} ${*} | gtd_grep } |