addnote() {
+ # attempt syncing before adding a note
+ gitsync
# remove eventually existing temp DB file
if [[ -f $TMPDB ]]; then
rm $TMPDB
# alacritty --class notes --title notes -e /usr/bin/vim ...
# shellcheck disable=SC2086,SC2091
$(${TERMINAL} ${TERM_OPTS} ${EDITOR} ${NOTESDIR}/${NOW})
+ # add note to git and push to remote
+ gitadd
}