-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-host.sh
executable file
·33 lines (30 loc) · 1.04 KB
/
update-host.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
#!/bin/bash
read -r -p "Are you sure? [y/N] " response
response=${response,,} # tolower
if [[ "$response" =~ ^(yes|y)$ ]]
then
# Update host scripts with scripts located in this repo
echo "Updating ~/.scripts"
rsync -av --progress ./.scripts/ ~/.scripts --exclude polybar-redshift/
# Update all rices
echo "Updating rice files in ~/"
cp -v .zshrc .bashrc .vimrc .profile .Xresources .xinitrc .bash_aliases ~/
# Update config files
echo "Updating config files in ~/.config/"
cp -vr .config/i3 ~/.config/
cp -vr .config/polybar ~/.config/
cp -vr .config/dunst ~/.config/
cp -vr .config/conky ~/.config/
cp -vr .config/dunst ~/.config/
cp -vr .config/nvim/ ~/.config/
cp -vr .config/ranger/ ~/.config/
cp -vr .config/rofi/ ~/.config/
cp -vr .config/picom/ ~/.config/
cp -vr .config/kitty/ ~/.config/
cp -vr .config/neofetch/ ~/.config/
# Deprecated
# cp -vr .config/ncmpcpp/ ~/.config/
# cp -vr .config/cava ~/.config/
else
echo "Nothing changed. Exiting."
fi