Browse files

Fix todo.sh and completion

  • Loading branch information...
1 parent 478d864 commit cfb7d3f9cd94eabf5ce59971b3dcc805a39706c6 @pengwynn committed Mar 14, 2013
Showing with 3 additions and 8 deletions.
  1. +1 −7 todo/completion.sh
  2. +2 −1 todo/todo.zsh
View
8 todo/completion.sh
@@ -1,5 +1,3 @@
-alias td='`brew --prefix`/bin/todo.sh -c -d $HOME/.todo.cfg'
-alias n='td ls +next'
_td() {
local _todo_sh='`brew --prefix`/bin/todo.sh -d "$HOME/.todo.cfg"'
_todo "$@"
@@ -8,8 +6,4 @@ _td() {
completion="`brew --prefix`"/Cellar/todo-txt/2.9/etc/bash_completion.d/todo_completion
source $completion
-#if test -f $completion
-#then
- #source $completion
- #complete -F _td td
-#fi
+compdef td=todo.sh
View
3 todo/todo.zsh
@@ -1,2 +1,3 @@
export TODOTXT_DEFAULT_ACTION=ls
-#alias td='`brew --prefix`/bin/todo.sh -d ~/.todo.cfg'
+alias td='`brew --prefix`/bin/todo.sh -d ~/.todo.cfg'
+alias n='td ls +next'

0 comments on commit cfb7d3f

Please sign in to comment.