summaryrefslogtreecommitdiffstats
path: root/.bin/dot-sync
blob: f12f878bb7314750c175657b1f1f016ac2ae5b4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

set -xe

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

yadm stash
yadm pull --rebase
yadm stash pop

yadm add -u
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"

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.