From 7ec2a1263e53e4b22bbb3068782da0425c7c5b95 Mon Sep 17 00:00:00 2001 From: Guilherme Reis Date: Mon, 26 Mar 2018 19:23:27 +0100 Subject: [PATCH] Read the task's name and uses as default (#249) Read the task's name and uses as default, so the user can read the previous task's name. Thanks @guifeliper --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index bd581c3..7af8c57 100755 --- a/todo.sh +++ b/todo.sh @@ -427,7 +427,7 @@ replaceOrPrepend() if [[ -z "$1" && $TODOTXT_FORCE = 0 ]]; then echo -n "$querytext" - read -e -r input + read -r -i $todo -e input else input=$* fi