-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·66 lines (59 loc) · 1.58 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
63
64
65
66
#!/bin/sh -e
DOTFILES_LOCATION="$HOME/jeev-dotfiles"
if [ -d "$DOTFILES_LOCATION" ]; then
printf "%b\n" "$DOTFILES_LOCATION already exists. Do you want to remove it? [Y\n]"
read -r choice
choice=${choice:-Y}
if [ "$choice" = "y" ] || [ "$choice" = "Y" ]; then
rm -rf "$DOTFILES_LOCATION"
else
exit 0
fi
fi
git clone "https://github.com/jeevithakannan2/dotfiles" "$DOTFILES_LOCATION"
cd "$DOTFILES_LOCATION" || exit 1
prompt() {
printf "%b\n" "Jeev DotFiles Installer !!"
printf "%b\n" "Choose what to install"
printf "%b\n" "1. Hypr Catppuccin"
printf "%b\n" "2. Bash Prompt"
printf "%b\n" "3. QT theme Catppuccin"
printf "%b\n" "4. DWM Catppuccin"
printf "%b\n" "5. Nvim configuration"
printf "%b\n" "6. All of the above"
printf "%b\n" "0. Exit"
printf "%b" "Your choice [ 0-6 ]: "
read -r choice
}
prompt
while [ "$choice" != "0" ]; do
case "$choice" in
1)
./scripts/hypr.sh
;;
2)
./scripts/bash-prompt.sh
;;
3)
./scripts/qt-theme.sh
;;
4)
./scripts/dwm.sh
;;
5)
./scripts/nvim.sh
;;
6)
./scripts/hypr.sh
./scripts/qt-theme.sh
./scripts/bash-prompt.sh
./scripts/dwm.sh
./scripts/nvim.sh
;;
*)
printf "%b\n" "Invalid choice. Please select a valid option."
;;
esac
prompt
done
printf "%b\n" "Exiting. Thank you for using Jeev DotFiles Installer!"