ttodo: less intrusive - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit c0134469d9efa0675cb9682774ac52f1bbca260e
(DIR) parent 3672216648b26444310c3c1bb5d4cd29aa9881a5
(HTM) Author: z3bra <willy@mailoo.org>
Date: Sat, 6 Dec 2014 12:45:29 +0100
ttodo: less intrusive
Diffstat:
M todo | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/todo b/todo
t@@ -9,11 +9,9 @@
#Where's the file ?
TODO=${TODO:-$HOME/.todo}
-# List the content of the file with some fancy headers
list() {
- test -f $TODO || { echo "nothing to do, enjoy."; exit 0; }
- # WOAH, MUCH CLEVER !
- nl $TODO
+ # WOAH MUCH CLEVER!!
+ test -f $TODO && nl $TODO
}
append() {