-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·62 lines (57 loc) · 1.87 KB
/
install.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
57
58
59
60
61
62
#!/bin/sh
read -p "This script will delete your existing configuration files. Would you like to continue? (y/N)? " CONT
if [ "$CONT" = "y" ]; then
rm -r ~/.config/sway;
rm -r ~/.config/alacritty;
rm -r ~/.config/waybar;
rm -r ~/.config/nvim;
rm -r ~/.config/zathura;
rm -r ~/.config/i3;
rm -r ~/.config/polybar;
rm -r ~/.config/gtk-3.0;
rm -r ~/.config/rofi;
rm -r ~/.config/gdb
rm -r ~/.config/qutebrowser
rm -r ~/.config/mpd
rm -r ~/.config/khal
rm -r ~/.config/khard
rm -r ~/.config/vdirsyncer
rm -r ~/.config/neomutt
rm -r ~/.config/msmtp
rm -r ~/.config/ncmpcpp
rm -r ~/.config/mako
rm -r ~/.config/foot
rm -r ~/.config/mimeapps.list
rm -r ~/.config/user-dirs.dirs
rm ~/.zshrc
rm ~/.zshenv
rm ~/.mbsyncrc
ln -s ${PWD}/sway ~/.config/sway;
ln -s ${PWD}/alacritty ~/.config/alacritty;
ln -s ${PWD}/waybar ~/.config/waybar;
ln -s ${PWD}/nvim ~/.config/nvim;
ln -s ${PWD}/zathura ~/.config/zathura;
ln -s ${PWD}/i3 ~/.config/i3;
ln -s ${PWD}/polybar ~/.config/polybar;
ln -s ${PWD}/gtk-3.0 ~/.config/gtk-3.0;
ln -s ${PWD}/rofi ~/.config/rofi;
ln -s ${PWD}/gdb ~/.config/gdb;
ln -s ${PWD}/qutebrowser ~/.config/qutebrowser;
ln -s ${PWD}/mpd ~/.config/mpd;
ln -s ${PWD}/khal ~/.config/khal;
ln -s ${PWD}/khard ~/.config/khard;
ln -s ${PWD}/vdirsyncer ~/.config/vdirsyncer;
ln -s ${PWD}/neomutt ~/.config/neomutt;
ln -s ${PWD}/msmtp ~/.config/msmtp;
ln -s ${PWD}/ncmpcpp ~/.config/ncmpcpp;
ln -s ${PWD}/mako ~/.config/mako;
ln -s ${PWD}/foot ~/.config/foot;
ln -s ${PWD}/mime/mimeapps.list ~/.config/mimeapps.list;
ln -s ${PWD}/user-dirs/user-dirs.dirs ~/.config/user-dirs.dirs;
ln -s ${PWD}/zsh/zshrc ~/.zshrc
ln -s ${PWD}/zsh/zshenv ~/.zshenv
ln -s ${PWD}/mbsync/mbsyncrc ~/.mbsyncrc
echo "Updated files";
else
echo "Cancelled.";
fi