Skip to content
Esat Sefa Bayhan edited this page Apr 20, 2024 · 7 revisions

For Windows Download and install Cygwin. Cygwin provides a Unix-environment for Windows; Todo.txt needs just the Bash shell and some common Unix tools, so a minimal installation will do just fine (Another suggestion is to use git on windows - it's smaller and have sh builtin git on windows).

For MacOS it is simpler to use the defacto package management tool Homebrew . See here for how


Installation

  1. Download the latest stable release of Todo.txt CLI (available as a ZIP or TAR archive) and extract it.

  2. Open a command window. On Windows, this is Cygwin Bash Shell (not Command Prompt!); elsewhere, this is often called Terminal. It usually presents you with a $ prompt. cd into the directory where you extracted todo.sh. Make the todo.sh script executable:

$ chmod +x todo.sh
  1. Type ./todo.sh to see the usage message. You're ready to go! To start adding tasks, type ./todo.sh add "My new task"

Optional

  1. Install the Bash completion, either system-wide, for all users:
$ sudo cp todo_completion /etc/bash_completion.d/todo

or put it somewhere in your home directory and source it from your .bashrc:

$ source todo_completion

Now you can type $ ./todo.sh ad<Tab> and Bash will autocomplete the action to $ ./todo.sh add. Any words that begin with + or ` will be completed using projects or contexts, respectively. Task numbers will append the task text as a shell comment.

Note: If you define an alias (e.g. t) to todo.sh, you need to explicitly enable completion for it, too (also put this into your .bashrc):

$ complete -F _todo t

MAC : Using Homebrew

  1. Download the latest version by running
brew install todo-txt
  1. By default brew installs packages on usr/local/opt/ , so you'll need to copy the config file to HOME by running
 cp /usr/local/opt/todo-txt/todo.cfg ~/.todo.cfg 
  1. Next you'll want to configure the directory where your todos will be created, otherwise they'll be created on /usr/local/bin by default (or wherever todo.sh is located). Open .todo.cfg in your favourite text editor and edit the path variable TODO_DIR

Note : Auto completion will be automatically installed , but you'll still need to enable it if you aliased todo.sh

Help