summaryrefslogtreecommitdiffstats
path: root/.bin/dot-sync
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
commit23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (patch)
treea9a477e11fb6dbea189835147a149e56c0f03a7f /.bin/dot-sync
parentce6be946d024aa55a15d576388d05f90be671cf2 (diff)
downloaddots-23e2bfd987c430bb41bc7860c46c2f572e9e2db4.tar.gz
Sat Jan 14 02:47:33 PM CET 2023
Diffstat (limited to '.bin/dot-sync')
-rwxr-xr-x.bin/dot-sync41
1 files changed, 23 insertions, 18 deletions
diff --git a/.bin/dot-sync b/.bin/dot-sync
index 0643086..f12f878 100755
--- a/.bin/dot-sync
+++ b/.bin/dot-sync
@@ -1,29 +1,34 @@
#!/bin/sh
-set -x -e
+set -xe
export GIT_SSH_COMMAND="ssh -o ConnectTimeout=1 -o ConnectionAttempts=1"
-yadm pull
+yadm stash
+yadm pull --rebase
+yadm stash pop
yadm add -u
yadm add \
- $HOME/.bin \
- $HOME/.config/i3 \
- $HOME/.config/neomutt \
- $HOME/.config/newsboat \
- $HOME/.config/nvim \
- $HOME/.config/qutebrowser/*.py \
- $HOME/.config/qutebrowser/bookmarks \
- $HOME/.config/qutebrowser/greasemonkey \
- $HOME/.config/qutebrowser/quickmarks \
- $HOME/.config/qutebrowser/userscripts/*.py \
- $HOME/.config/sway \
- $HOME/.config/task \
- $HOME/.config/yadm \
- $HOME/.config/waybar \
- $HOME/.config/zk \
- $HOME/.public-keys
+ "${HOME}/.bin" \
+ "${HOME}/.config/cmus/playlists" \
+ "${HOME}/.config/i3" \
+ "${HOME}/.config/mpv/mpv.conf" \
+ "${HOME}/.config/mpv/scripts" \
+ "${HOME}/.config/neomutt" \
+ "${HOME}/.config/newsboat" \
+ "${HOME}/.config/nvim" \
+ "${HOME}/.config/qutebrowser/*.py" \
+ "${HOME}/.config/qutebrowser/bookmarks" \
+ "${HOME}/.config/qutebrowser/greasemonkey" \
+ "${HOME}/.config/qutebrowser/quickmarks" \
+ "${HOME}/.config/qutebrowser/userscripts/*.py" \
+ "${HOME}/.config/sway" \
+ "${HOME}/.config/task" \
+ "${HOME}/.config/yadm" \
+ "${HOME}/.config/waybar" \
+ "${HOME}/.config/zk" \
+ "${HOME}/.public-keys"
yadm push
remember that computers suck.