From d53f9c03bde28cc4d9c6d76b384e902437f92105 Mon Sep 17 00:00:00 2001 From: jagipson Date: Thu, 16 Jun 2011 12:09:58 -0700 Subject: [PATCH] Updated Tips and Tricks (textile) --- Tips-and-Tricks.textile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tips-and-Tricks.textile b/Tips-and-Tricks.textile index 993a1e2..c54c0a8 100644 --- a/Tips-and-Tricks.textile +++ b/Tips-and-Tricks.textile @@ -24,6 +24,12 @@ function t() { } +Or using bash 3 or greater: +
function t() {
+  todo.sh -d /path/to/your/todo.cfg ${1:-"ls"} ${*#$1}
+}
+
+ You can still type @t add laundry@ from anywhere to add a task, but now you can just type @t@ to list your current tasks. *Hide the configuration file by renaming it @.todo.cfg@.*