diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/.zshrc | 2 | ||||
-rw-r--r-- | etc/functions/gtd-all | 26 |
2 files changed, 3 insertions, 25 deletions
@@ -363,7 +363,7 @@ alias lsi='feh --list' alias lst='tar -tvf' alias lsz='unzip -l' -alias mate='decrement ~/stuff/$(cat ~/var/tmp/.actual-location)/mateguthaben' +alias mate='decrement ~/stuff/$(cat /tmp/.location)/mateguthaben' alias nb='newsbeuter' alias nbr='newsbeuter -r' 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} ${*} } |