From 7602ba703e607d5e776b26af0989c1f48da8c34d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 10 Dec 2020 14:41:42 +0100 Subject: [PATCH] Add function to get amount of tasks --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 88ef9d8..edb2c40 100644 --- a/.bashrc +++ b/.bashrc @@ -11,6 +11,10 @@ export PATH=~/.bin:$PATH bold=$(tput bold) reset=$(tput sgr0) +get_tasks_left() { + echo "$(todoist l | wc -l) tasks" +} + get_branch_name() { git symbolic-ref --quiet --short HEAD 2>/dev/null \ || git rev-parse --short HEAD 2>/dev/null \