summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2012-04-01 01:38:07 -0400
committerJune McEnroe <june@causal.agency>2012-04-01 01:38:07 -0400
commita0411126044ce2f03c43bb67e2f1439fec8c4d71 (patch)
tree9d4995eab4340e85c005ce88951fa27b62ace7e1
parentAdd t alias for task (diff)
downloadsrc-a0411126044ce2f03c43bb67e2f1439fec8c4d71.tar.gz
src-a0411126044ce2f03c43bb67e2f1439fec8c4d71.zip
Count only incomplete tasks in prompt
-rw-r--r--.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 97e0dd4b..a0748b33 100644
--- a/.zshrc
+++ b/.zshrc
@@ -146,7 +146,7 @@ alias t='task'
 setopt PROMPT_SUBST
 
 function prompt_task {
-  COUNT=$(task count -longterm)
+  COUNT=$(task count -longterm status.isnt:completed)
   [ "$COUNT" -gt 0 ] && echo "[%{$fg[red]%}$COUNT%{$fg[green]%}]"
 }