Add function to get amount of tasks

master
Hektor Misplon 2020-12-10 14:41:42 +01:00
parent e700cd7889
commit 7602ba703e
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ export PATH=~/.bin:$PATH
bold=$(tput bold) bold=$(tput bold)
reset=$(tput sgr0) reset=$(tput sgr0)
get_tasks_left() {
echo "$(todoist l | wc -l) tasks"
}
get_branch_name() { get_branch_name() {
git symbolic-ref --quiet --short HEAD 2>/dev/null \ git symbolic-ref --quiet --short HEAD 2>/dev/null \
|| git rev-parse --short HEAD 2>/dev/null \ || git rev-parse --short HEAD 2>/dev/null \