-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync.sh
executable file
·47 lines (38 loc) · 906 Bytes
/
sync.sh
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
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
echo "Syncing files to git repo"
rsync -av --progress ~/.config/i3/ ~/gitthings/dotfiles/i3/
if [[ $? -eq 0 ]]; then
echo "Files synced ! "
else
echo "Error ! "
fi
rsync -av --progress ~/.config/i3/walls/ ~/gitthings/dotfiles/i3/walls
if [[ $? -eq 0 ]]; then
echo "Files synced ! "
else
echo "Error ! "
fi
rsync -av --progress ~/.config/picom/ ~/gitthings/dotfiles/picom/
if [[ $? -eq 0 ]]; then
echo "Files synced ! "
else
echo "Error ! "
fi
rsync -av --progress ~/.config/kitty/ ~/gitthings/dotfiles/kitty
if [[ $? -eq 0 ]]; then
echo "Files synced ! "
else
echo "Error ! "
fi
rsync -av --progress ~/.config/rofi/ ~/gitthings/dotfiles/rofi/
if [[ $? -eq 0 ]]; then
echo "Files synced ! "
else
echo "Error ! "
fi
rsync -av --progress ~/.config/nvim/lua ~/gitthings/dotfiles/nvim/
if [[ $? -eq 0 ]]; then
echo "Files synced ! "
else
echo "Error ! "
fi