Skip to content

Instantly share code, notes, and snippets.

@asayers
Created January 8, 2017 10:13
Show Gist options
  • Save asayers/c0a63784d27eb7b1758140bc5484e1b1 to your computer and use it in GitHub Desktop.
Save asayers/c0a63784d27eb7b1758140bc5484e1b1 to your computer and use it in GitHub Desktop.
#!/bin/bash -eu
LIST=${1:-todo.txt}
pushd "$HOME/.todo"
git pull
vim "$LIST"
LC_ALL=C sort "$LIST" -o "$LIST"
git add "$LIST"
git commit -m "Update list $LIST"
git push
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment