summaryrefslogblamecommitdiffstats
path: root/.bin/dot-sync
blob: f41b9361be5c9fe656b69ade264980caf22d5657 (plain) (tree)
1
2
3
4
5
6
7
8
9

         
       


                                                                        


                          
 
                   
          

















                                                        

                                


         

                                                                     

                                           
#!/bin/sh

set -xe

export GIT_SSH_COMMAND="ssh -o ConnectTimeout=1 -o ConnectionAttempts=1"

yadm stash || true
yadm pull --rebase || true
yadm stash pop || true

yadm add -u || true
yadm add \
	"${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" \
	|| true

yadm push

nvim --headless -c "PaqSync" -c "TSInstall all" -c "TSUpdate" -c "qa"

yadm commit -m "$(date +%Y-%m-%dT%H:%M:%S)"
yadm push
remember that computers suck.