-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsync.sh
executable file
·40 lines (33 loc) · 886 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
#!/bin/bash
cpcfg() {
echo "Syncing $1"
cp "$HOME"/"$1" .
}
cpcfgf() {
echo "Syncing $1 as $2"
cp "$HOME"/"$1" ./"$2"
}
mkdir .config/kitty -p
cpcfg .profile
cpcfg .vimrc
cpcfg .config/kitty/kitty.conf
cpcfg .config/melonDS/melonDS.ini
cpcfg .config/compton/compton.conf
cpcfg .config/bleachbit/bleachbit.ini
cpcfg .config/gdb/gdbinit
cpcfgf .config/qutebrowser/config.py qutebrowser.py
cpcfgf .config/i3/config i3cfg
cpcfgf .config/openbox/rc.xml obrc.xml
cpcfgf .config/openbox/autostart.sh obautostart.sh
cpcfgf .config/mpv/input.conf mpvinput.conf
cpcfgf .config/git/config .gitconfig
cpcfgf .config/conky/conkyrc .conkyrc
echo "Success"
changed_files="$(git ls-files -m)"
changed_files_pad="$(echo "$changed_files" | sed 's/^/ /')"
if [ -z "$changed_files" ]; then
echo "No changed files."
else
echo "Changed files:"
echo "$changed_files_pad"
fi