Taskwarrior Lesson 05: Taskwarror and Bash

3,138 views · Published 10 July 2017 · 8:36 · Indexed 13 October 2026

Channel: Bill Hertzing · 2017 · Entertainment

Watch on YouTube

In this episode, I show how to reduce the amount of typing you have to do with Taskwarrior.  I show how to put commands into the .bashrc file that makes creating tasks easier. 
---
Lesson Notes: http://techtips.billhertzing.com/post/taskwarrior_lesson_05/

------------------------
New Commands from this episode

Configurations to the .bashrc file

alias nt=“task add $1”
$1 is an argument that you can send to command and it will process it where it is located.

alias tl="task list"

alias reload="source .bashrc"

alias nt="task add $1"

taskprojectfunction () {
    task $1 modify project:$2
}
alias tproj=taskprojectfunction 

UPDATE: Monday, July 10, 2017 04:12 pm - I was absolutely wrong about this. Although Taskwarrior took the command it is not stored correctly. It is essentially stored as one whole word or string. The correct way is in the code below.

##WRONG##$ task {task id} modify tag:"{text} {text} {text}"

##WRONG##tasktagfunction () {
##WRONG##    task $1 modify tag:"$1 $2 $3"
##WRONG##}
##WRONG##alias ttag=tasktagfunction

This is the correct way.  I will explain more in Lesson 05 Part 2: Correction.

$ task {task id} modify +{tag#1} +{tag#2} +{tag#3}

---
Lesson 05 Notes: http://techtips.billhertzing.com/post/taskwarrior_lesson_05/
__
Bill Hertzing on Social Media:
YouTube- https://www.youtube.com/user/bhertzing
Instagram- https://www.instagram.com/bhertzing/
Twitter- https://twitter.com/billhertzing
http://blog.billhertzing.com/
http://techtips.billhertzing.com/

More from this channel