4ec9db5877e3

Add some extra tasks functions and aliases.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 26 Aug 2009 21:26:30 -0400
parents b9a808e4dca5
children 4abab49bf2bb
branches/tags (none)
files .bashrc

Changes

--- a/.bashrc	Wed Aug 26 17:43:57 2009 -0400
+++ b/.bashrc	Wed Aug 26 21:26:30 2009 -0400
@@ -8,6 +8,8 @@
 alias flakes="find . -name '*.py' -print0 | xargs -0 pyflakes"
 alias fab='fab -i ~/.ssh/stevelosh'
 alias t='~/src/t/t.py --task-dir="~/tasks"'
+alias m='~/src/t/t.py --task-dir="~/tasks" --list=groceries'
+alias g='~/src/t/t.py --task-dir="~/tasks" --list=music'
 
 bind 'set completion-ignore-case on'
 bind 'set show-all-if-ambiguous on'
@@ -61,6 +63,10 @@
 {${GREEN}{status}}{${GREEN}{update}}" 2> /dev/null
 }
 
+tasks_ps1() {
+    t | wc -l | sed -e's/ *//'
+}
+
 render_ps1() {
   echo "\n\
 ${PINK}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w$(hg_ps1)${D}\n\