Add function to get amount of tasks

This commit is contained in:
Hektor Misplon
2020-12-10 14:41:42 +01:00
parent e700cd7889
commit 7602ba703e

View File

@@ -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 \