diff --git a/zshrc b/zshrc index 9fb0acf..550bcc9 100644 --- a/zshrc +++ b/zshrc @@ -346,22 +346,38 @@ function tasec() { ## }}} ## Display tasks of today {{{ function taday() { - timew summary :day :ids "${*}" + if [ "${#}" -eq 0 ]; then + timew summary :day :ids + else + timew summary :day :ids "${*}" + fi } ## }}} ## Display tasks of this week {{{ function taweek() { - timew summary :week :ids "${*}" + if [ "${#}" -eq 0 ]; then + timew summary :week :ids + else + timew summary :week :ids "${*}" + fi } ## }}} ## Display tasks of this month {{{ function tamonth() { - timew summary :month :ids "${*}" + if [ "${#}" -eq 0 ]; then + timew summary :month :ids + else + timew summary :month :ids "${*}" + fi } ## }}} ## Display tasks of this year {{{ function tayear() { - timew summary :year :ids "${*}" + if [ "${#}" -eq 0 ]; then + timew summary :year :ids + else + timew summary :year :ids "${*}" + fi } ## }}}