From 23e2bfd987c430bb41bc7860c46c2f572e9e2db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 14 Jan 2023 14:47:33 +0100 Subject: Sat Jan 14 02:47:33 PM CET 2023 --- .bin/dot-sync | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to '.bin/dot-sync') 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 -- cgit v1.2.3