Skip to content

Commit

Permalink
Open todo.txt in $EDITOR if no arguments are given
Browse files Browse the repository at this point in the history
  • Loading branch information
tuzz committed Dec 15, 2019
1 parent 5d29724 commit 1952fad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chef/todotxt/files/command
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1952fad

Please sign in to comment.