Pārlūkot izejas kodu

Check if TaskWarrior is present

Alois Mahdal 9 gadus atpakaļ
vecāks
revīzija
b1a4ea3e9f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      dotfiles/bash/post.bashrc

+ 1
- 0
dotfiles/bash/post.bashrc Parādīt failu

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"