-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·60 lines (54 loc) · 1.43 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
#!/bin/bash
git --version 2>&1 >/dev/null
GIT_IS_AVAILABLE=$?
if [ $GIT_IS_AVAILABLE -ne 0 ]; then
echo 'installing git...'
sudo dnf install git -y
echo 'installing git... done'
fi
[[ -d ~/.dotfiles ]] || git clone --depth 1 https://github.com/yugarinn/dotfiles ~/.dotfiles
cd ~/.dotfiles || exit
PS3='Please enter your choice: '
options=("Do all" "Setup dotfiles" "Setup config" "Install dependencies" "Quit")
while true; do
clear
echo "Please choose an option:"
select opt in "${options[@]}"; do
case $opt in
"Do all")
./bin/dotfiles.sh;
./bin/bootstrap.sh;
./bin/configs.sh;
./bin/emacs.sh;
echo "Done!"
break
;;
"Setup dotfiles")
./bin/dotfiles.sh;
echo "Done!"
break
;;
"Install dependencies")
./bin/bootstrap.sh;
echo "Done!"
break
;;
"Setup config")
./bin/configs.sh;
echo "Done!"
break
;;
"Setup emacs")
./bin/emacs.sh;
echo "Done!"
break
;;
"Quit")
chsh -s $(which zsh)
echo "Now that's what I call a dead parrot."
exit
;;
*) echo "Invalid option: $REPLY"; break;;
esac
done
done