summaryrefslogtreecommitdiffstats
path: root/.bin/dot-sync
diff options
context:
space:
mode:
Diffstat (limited to '.bin/dot-sync')
-rwxr-xr-x.bin/dot-sync25
1 files changed, 25 insertions, 0 deletions
diff --git a/.bin/dot-sync b/.bin/dot-sync
new file mode 100755
index 0000000..7f4d490
--- /dev/null
+++ b/.bin/dot-sync
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -x -e
+
+export GIT_SSH_COMMAND="ssh -o ConnectTimeout=1 -o ConnectionAttempts=1"
+
+yadm pull
+
+yadm add -u
+yadm add \
+ $HOME/.bin \
+ $HOME/.config/i3 \
+ $HOME/.config/neomutt \
+ $HOME/.config/newsboat \
+ $HOME/.config/nvim \
+ $HOME/.config/qutebrowser/{*.py,greasemonkey} \
+ $HOME/.config/sway \
+ $HOME/.config/yadm \
+ $HOME/.config/waybar \
+ $HOME/.public-keys
+
+yadm push
+
+yadm commit -m "$(date +%Y-%m-%dT%H:%M:%S)"
+yadm push
remember that computers suck.