]> git.donarmstrong.com Git - bin.git/blob - update_org_caldav
add mutt alias which executes neomutt if that exists
[bin.git] / update_org_caldav
1 #!/bin/bash
2
3 LOCKOPTS=-q
4 LOCKFILE=$TMPDIR/update_org_caldav
5 if [ -n "$PS1" ]; then
6     LOCKOPTS=-f;
7 fi;
8 LOCKIT="with-lock-ex $LOCKOPTS $LOCKFILE"
9 TIMEOUT="timeout -k6m 6m"
10 ${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up;
11
12 ${LOCKIT} ${TIMEOUT} nice -n 19 \
13           emacs --batch --no-init -l ~/org-caldav-setup.el \
14           >/dev/null 2>&1