From ca84d731bab22632365606d4ca3f3662d5e3e177 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 16 Apr 2020 06:36:22 +0200 Subject: [PATCH] Add a function for timewarrior last day --- zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zshrc b/zshrc index dfbdfc2..1726df5 100644 --- a/zshrc +++ b/zshrc @@ -356,6 +356,15 @@ function taday() { fi } ## }}} +## Display tasks of last day {{{ +function talastday() { + if [ "${#}" -eq 0 ]; then + timew summary :yesterday :ids + else + timew summary :yesterday :ids "${*}" + fi +} +## }}} ## Display tasks of this week {{{ function taweek() { if [ "${#}" -eq 0 ]; then