summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2012-04-01 01:38:07 -0400
committerJune McEnroe <programble@gmail.com>2012-04-01 01:38:07 -0400
commit89ce12da9cdff4a45b30e165094191993b253842 (patch)
tree5ac430566be6482358c636c620d86d18be7e9ce4
parentAdd t alias for task (diff)
downloadsrc-89ce12da9cdff4a45b30e165094191993b253842.tar.gz
src-89ce12da9cdff4a45b30e165094191993b253842.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 37e9c2f5..cec2c343 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]%}]"
 }