summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-01-21 15:29:59 +0200
committerLars Wirzenius <liw@liw.fi>2017-01-21 15:29:59 +0200
commit78c092d03cef4f16fbeb89e80f48e9a2ea1c2a3e (patch)
treec9e76a20e48a13eafa492c102270e17549e9c819 /bashrc
parent4655d73369528b668dc537643b2c0cde661a7eb1 (diff)
downloadliw-dot-files-78c092d03cef4f16fbeb89e80f48e9a2ea1c2a3e.tar.gz
Fix check for taskwarrior to be more precise
This fixes a problem on a machine with taskwarrrior installed, but never used: task would interactively ask user whether to setup a .taskrc, and block until it gets an answer.
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index c7bd6c3..e53e1c0 100644
--- a/bashrc
+++ b/bashrc
@@ -49,7 +49,7 @@ termattr()
taskwarrior_context()
{
- if command -v task > /dev/null
+ if command -v task > /dev/null && [ -e .task ] && [ -e .task ]
then
task context list | awk '$NF == "yes" { print $1 }'
fi