-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecover.sh
executable file
·77 lines (71 loc) · 1.65 KB
/
recover.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
NEOVIM_DIR=.config/nvim
NEOVIM_LUA_DIR=$NEOVIM_DIR/lua
# neovim
while true; do
read -p "Install neovim configs? " yn
case $yn in
[Yy]* )
cp $NEOVIM_DIR/init.lua ~/$NEOVIM_DIR/init.lua;
nvim;
break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# zsh
while true; do
read -p "Install zsh configs? " yn
case $yn in
[Yy]* ) cp .zshrc ~/.zshrc;
chsh -s $(which zsh);
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)";
break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# tmux
while true; do
read -p "Install tmux configs? " yn
case $yn in
[Yy]* ) cp .tmux.conf ~/.tmux.conf;
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
tmux;
break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# ranger
while true; do
read -p "Install ranger configs? " yn
case $yn in
[Yy]* ) mkdir -p ~/.config/ranger;
cp .config/ranger/rifle.conf ~/.config/ranger/rifle.conf; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# xmonad/xmobar
while true; do
read -p "Install xmonad and xmobarrc configs? " yn
case $yn in
[Yy]* ) mkdir -p ~/.xmonad;
cp .xmonad/xmonad.hs ~/.xmonad/xmonad.hs;
cp .xmobarrc ~/.xmobarrc;
xmonad --recompile; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# mpd
while true; do
read -p "Install mpd configs? " yn
case $yn in
[Yy]* ) mkdir -p ~/.config/mpd;
cp .config/mpd/mpd.conf ~/.config/mpd/mpd.conf;
echo "mpd: remember to enable this daemon (e.g. systemctl enable --now mpd)"; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done