forked from Manas140/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·34 lines (31 loc) · 999 Bytes
/
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
#!/bin/sh
#variables
cr="\033[1;31m"
cg="\033[1;32m"
cb="\033[1;34m"
printf "${cg}[*] Proceeding Will Replaces Your Previous Config, Make A Backup Before Running It.\n"
printf "${cr}"
read -p "[*] DO YOU WANT TO PROCEED [Y/N] " allowed
dir="$HOME/.config $HOME/Pictures/Wallpapers $HOME/.local/bin $HOME/.fonts"
case $allowed in
Y*|y*)
for a in $dir; do
mkdir -p $a
done
printf "${cg}[*] Copying Dotfiles\n"
printf "${cb} [*] Copying Configs\n"
cp -ra config/. ~/.config
cp -ra home/. ~/.
printf "${cg} [*] Configs Copied\n"
printf "${cb} [*] Copying Scripts\n"
cp -ra bin/. ~/.local/bin/
printf "${cg} [*] Scripts Copied\n"
printf "${cb} [*] Copying Wallpapers\n"
cp -ra walls/. ~/Pictures/Wallpapers
printf "${cg} [*] Wallpapers Copied\n"
printf "${cb} [*] Copying Fonts\n"
cp -ran fonts/. ~/.fonts
printf "${cg} [*] Fonts Copied\n"
printf "${cg}[*] Dotfiles Installed\n";;
*) printf "${cr}[-] Aborting!\n";;
esac