Add function to get amount of tasks
parent
e700cd7889
commit
7602ba703e
4
.bashrc
4
.bashrc
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue