Add function to get amount of tasks
This commit is contained in:
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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user