From 1952fad594453f3200b8ee4bc75e89302c72f54a Mon Sep 17 00:00:00 2001 From: Chris Patuzzo Date: Sun, 15 Dec 2019 00:36:13 +0000 Subject: [PATCH] Open todo.txt in $EDITOR if no arguments are given --- chef/todotxt/files/command | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chef/todotxt/files/command b/chef/todotxt/files/command index 238b447..c720229 100644 --- a/chef/todotxt/files/command +++ b/chef/todotxt/files/command @@ -4,4 +4,8 @@ source /usr/local/opt/todo-txt/etc/bash_completion.d/todo_completion complete -F _todo t -/usr/local/bin/todo.sh $@ +if [ $# -eq 0 ]; then + $EDITOR $HOME/Dropbox/GTD/todo.txt +else + /usr/local/bin/todo.sh $@ +fi