diff --git a/zshrc b/zshrc index 0dc54cf..dfbdfc2 100644 --- a/zshrc +++ b/zshrc @@ -365,6 +365,15 @@ function taweek() { fi } ## }}} +## Display tasks of last week {{{ +function talastweek() { + if [ "${#}" -eq 0 ]; then + timew summary :lastweek :ids + else + timew summary :lastweek :ids "${*}" + fi +} +## }}} ## Display tasks of this month {{{ function tamonth() { if [ "${#}" -eq 0 ]; then @@ -374,6 +383,15 @@ function tamonth() { fi } ## }}} +## Display tasks of last month {{{ +function talastmonth() { + if [ "${#}" -eq 0 ]; then + timew summary :lastmonth :ids + else + timew summary :lastmonth :ids "${*}" + fi +} +## }}} ## Display tasks of this year {{{ function tayear() { if [ "${#}" -eq 0 ]; then @@ -383,6 +401,15 @@ function tayear() { fi } ## }}} +## Display tasks of last year {{{ +function talastyear() { + if [ "${#}" -eq 0 ]; then + timew summary :lastyear :ids + else + timew summary :lastyear :ids "${*}" + fi +} +## }}} ## Completion zstyle ':completion:*:*:task:*' verbose yes