diff --git a/.zshrc b/.zshrc index c05f77c..d71908d 100644 --- a/.zshrc +++ b/.zshrc @@ -161,7 +161,7 @@ # a simple way to manage your todo list # Usage: - # todo -- edit ~/todo + # todo -- pull latest repo version and edit ~/todo # todo auto -- commit and push ~/todo with message 'todo' # todo [any git command] -- manage todo for easy syncing, assuming ~/todo is # a symlink that points to a file in a git repo @@ -174,6 +174,7 @@ todo_dir="$(dirname "$(realpath ~/todo)")" if [ -z "$@" ];then cd "$(dirname "$(realpath ~/todo)")" + git pull $EDITOR ~/todo elif [ "$@" = 'auto' ];then cd "$todo_dir"