From 4d326c3d6355b5e2fee3d3f1864b7af04b970806 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Wed, 20 May 2020 13:17:49 +0200 Subject: [PATCH] customized add to todo.sh --- .todo.actions.d/add | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .todo.actions.d/add diff --git a/.todo.actions.d/add b/.todo.actions.d/add new file mode 100755 index 0000000..6e106aa --- /dev/null +++ b/.todo.actions.d/add @@ -0,0 +1,6 @@ +#!/bin/bash +if [ -z ${TODO_APPEND+x} ]; then + todo.sh command add "$(date +%Y-%m-%d) ${@:2}" +else + todo.sh command add "$(date +%Y-%m-%d) ${@:2} $TODO_APPEND" +fi