-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.sh
executable file
·64 lines (58 loc) · 1.23 KB
/
backup.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
NEOVIM_DIR=.config/nvim
NEOVIM_LUA_DIR=$NEOVIM_DIR/lua
# neovim
while true; do
read -p "Backup neovim configs? " yn
case $yn in
[Yy]* ) cp ~/$NEOVIM_DIR/init.lua $NEOVIM_DIR/init.lua;
break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# zsh
while true; do
read -p "Backup zsh configs? " yn
case $yn in
[Yy]* ) cp ~/.zshrc .zshrc; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# tmux
while true; do
read -p "Backup tmux configs? " yn
case $yn in
[Yy]* ) cp ~/.tmux.conf .tmux.conf; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# ranger
while true; do
read -p "Backup ranger configs? " yn
case $yn in
[Yy]* ) 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 "Backup xmonad and xmobarrc configs? " yn
case $yn in
[Yy]* ) cp ~/.xmonad/xmonad.hs .xmonad/xmonad.hs;
cp ~/.xmobarrc .xmobarrc; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done
# mpd
while true; do
read -p "Backup mpd configs? " yn
case $yn in
[Yy]* ) cp ~/.config/mpd/mpd.conf .config/mpd/mpd.conf; break;;
[Nn]* ) break;;
* ) echo "Yes or No?";;
esac
done