Browse Source

Check if TaskWarrior is present

Alois Mahdal 8 years ago
parent
commit
b1a4ea3e9f
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      dotfiles/bash/post.bashrc

+ 1
- 0
dotfiles/bash/post.bashrc View File

29
 
29
 
30
 __bashum__task_context() {
30
 __bashum__task_context() {
31
     local ctx       # TaskWarrior context
31
     local ctx       # TaskWarrior context
32
+    type -t task >/dev/null || return 1
32
     ctx=$(task _get rc.context)
33
     ctx=$(task _get rc.context)
33
     test -n "$ctx" || return
34
     test -n "$ctx" || return
34
     echo -n "|$ctx"
35
     echo -n "|$ctx"