소스 검색

Check if TaskWarrior is present

Alois Mahdal 8 년 전
부모
커밋
b1a4ea3e9f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      dotfiles/bash/post.bashrc

+ 1
- 0
dotfiles/bash/post.bashrc 파일 보기

@@ -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"