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