mirror of
https://github.com/captn3m0/Scripts.git
synced 2024-09-28 16:22:49 +00:00
23 lines
500 B
Bash
Executable File
23 lines
500 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
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 config --bool branch.main.sync true
|
|
git config --bool branch.main.syncNewFiles true
|
|
git-sync
|
|
popd
|
|
fi
|
|
}
|
|
|
|
# xpad-notes
|
|
sync_repo /home/nemo/.config/xpad yes
|
|
# passwords
|
|
sync_repo /home/nemo/.password-store
|
|
sync_repo /home/nemo/.notable |