scripts/syncrepos

23 lines
500 B
Plaintext
Raw Normal View History

#!/bin/bash
2020-05-15 19:33:49 +00:00
set -euo pipefail
IFS=$'\n\t'
2019-04-11 20:17:10 +00:00
PATH=$PATH:/home/nemo/projects/scripts/
function sync_repo() {
if [[ -d "$1" ]]; then
pushd $1
git config --bool branch.master.sync true
git config --bool branch.master.syncNewFiles true
2021-01-19 09:27:20 +00:00
git config --bool branch.main.sync true
git config --bool branch.main.syncNewFiles true
git-sync
popd
fi
2019-04-11 20:17:10 +00:00
}
# xpad-notes
sync_repo /home/nemo/.config/xpad yes
# passwords
sync_repo /home/nemo/.password-store
2021-01-08 20:12:45 +00:00
sync_repo /home/nemo/.notable