Skip to content

Instantly share code, notes, and snippets.

@ys
Last active December 25, 2015 18:59
Show Gist options
  • Save ys/7024004 to your computer and use it in GitHub Desktop.
Save ys/7024004 to your computer and use it in GitHub Desktop.
My todo lists handler
function todo {
vim ~/Dropbox/todos/$1.txt
}
function list-todo {
for i in ~/Dropbox/todos/*; do echo $(basename $i | cut -f 1 -d '.') ":" $(wc -l < $i); done
}
alias t='todo'
alias lt='list-todo'
@toch
Copy link

toch commented Oct 17, 2013

function list-todo {
for file in ~/Dropbox/todos/*; do wc -l $file | sed "s/\/.*todos\///"; done
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment