diff --git a/zshrc b/zshrc index dd18115..9fb0acf 100644 --- a/zshrc +++ b/zshrc @@ -322,23 +322,48 @@ alias jctl="journalctl" # Taskwarrior {{{ ## Aliases -alias wtask="task +work | head" alias t="task" + alias tawa="task waiting" -## search a task by it's name (case INsensitive) +## By tag +alias tawork="task +work | head" +alias taperso="task +perso | head" + +## search a task by it's name (case INsensitive) {{{ function tase() { search=""; for i; do; search="$search /$i/"; done; task rc.search.case.sensitive:no $search all; } - -## search a task by it's name (case SENSITIVE) +## }}} +## search a task by it's name (case SENSITIVE) {{{ function tasec() { search=""; for i; do; search="$search /$i/"; done; task $search all; } +## }}} +## Display tasks of today {{{ +function taday() { + timew summary :day :ids "${*}" +} +## }}} +## Display tasks of this week {{{ +function taweek() { + timew summary :week :ids "${*}" +} +## }}} +## Display tasks of this month {{{ +function tamonth() { + timew summary :month :ids "${*}" +} +## }}} +## Display tasks of this year {{{ +function tayear() { + timew summary :year :ids "${*}" +} +## }}} ## Completion zstyle ':completion:*:*:task:*' verbose yes