3 ORG_GREP='-e .org$ -e .org_archive$ -e .org_done$'
7 emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
9 for a in $(mr list |grep 'list:'|grep -v 'finished'|awk -F'list: ' '{print $2}' 2>/dev/null); do
11 if git status --porcelain|grep '^ M'|grep -q $ORG_GREP; then
12 git commit -m'update org files' $(mr --no-recurse status |grep '^ M'|grep $ORG_GREP|sed 's/^ M//g');
13 if [ "$1" != "commit" ]; then