-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpush.sh
executable file
·56 lines (49 loc) · 1.31 KB
/
push.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
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
set -e
set -x
PS4=""
mkdir -p \
~/.config/nvim \
~/.config/git \
~/.config/gtk-3.0 \
~/.config/VSCodium/User \
~/.config/.gimp-2.8 \
~/.config/ptpython \
~/.config/python \
~/.config/sqlite3 \
~/.config/gdb \
~/.local/share/gnupg \
~/.local/bin \
~/.cache/bash
cp -r .config/nvim/* ~/.config/nvim
cp {,~/}.config/git/ignore
cp {,~/}.config/gtk-3.0/settings.ini
cp {,~/}.config/VSCodium/User/settings.json
cp {,~/}.config/ptpython/config.py
cp {,~/}.config/python/pythonrc
cp {,~/}.config/gdb/gdbinit
cp {,~/}.config/sqlite3/sqliterc
cp {,~/}.bashrc
cp {,~/}.xinitrc
cp {,~/}.local/share/gnupg/gpg-agent.conf
cp .local/bin/*.sh ~/.local/bin
cp .local/bin/json_min ~/.local/bin/json_min
[ -z "$(command -v vscodium)" ] || {
VSCODIUM_DIR=".config/VSCodium/User"
VSCODIUM_CONFIG="$VSCODIUM_DIR/settings.json"
mkdir -p ~/"$VSCODIUM_DIR"
cp -f "$VSCODIUM_CONFIG" ~/"$VSCODIUM_CONFIG"
set +e
cat ./vscodium-extentions | xargs -L 1 vscodium --install-extension
set -e
}
[ -z "$(command -v npm)" ] || {
mkdir -p ~/.config/npm && npm completion > ~/.config/npm/completion.bash
}
[ -z "$(command -v flameshot)" ] || {
flameshot_config=.config/flameshot/flameshot.ini
mkdir -p ~/.config/flameshot
mkdir -p ~/Pictures
sed "s|HOME|$HOME|" $flameshot_config > ~/$flameshot_config
}
[ -f patch.sh ] && ./patch.sh