2019-08-20 10:38:34 +00:00
|
|
|
#!/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() {
|
2020-05-15 19:26:21 +00:00
|
|
|
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
|
2020-05-15 19:26:21 +00:00
|
|
|
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
|