scripts/syncrepos

32 lines
629 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
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
CWD1=`pwd`
# mobile-passwords
2019-04-15 19:26:17 +00:00
cp -r /home/nemo/.password-store/mobile-sync/*.gpg /home/nemo/projects/personal/mobile-passwords/
2019-04-11 20:17:10 +00:00
sync_repo /home/nemo/projects/personal/mobile-passwords
# TODO:
# scripts?: NO
# imapfilter: YES
# /etc: YES
# dotfiles: NO