-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·132 lines (108 loc) · 3.19 KB
/
setup.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#!/bin/bash
echo "For help read https://wiki.archlinux.org/title/Migrate_installation_to_new_hardware"
echo "Running setup script. Assuming you are in a bash shell."
echo "You should have already installed Arch fully without rebooting. For help read https://wiki.archlinux.org/title/Installation_guide"
echo "Press [Enter] to continue with configuration..."
while true; do
read -s -n 1 input
if [[ $input = '' ]]; then break; fi
done
HERE=$(dirname "${BASH_SOURCE[0]}")
# Install Asus ROG Zephyrus tools
# ===========================================
while true; do
read -p "Would you like to install Asus ROG Zephyrus tools? [Y/n]: " yn
case $yn in
"[Yy]*"|"" )
sh ./asus.sh
break;;
[Nn]* )
echo "Skipping Asus tools installation.";
break;;
* ) echo "Please answer yes or no.";;
esac
done
echo "=================================="
echo
# ===========================================
# Install backed up community and Aur packages
# ===========================================
# TODO: Remove drivers not needed on new system from lists
echo "Optionally installing community and Aur packages from pkglist*.txt"
echo "Would you like to..."
echo " => Install packages for a laptop"
echo " => Install packages for a desktop"
echo " => Skip installing packages"
select yn in "Laptop" "Desktop" "Skip"; do
case $yn in
Laptop )
pacman -S --needed - < pkglistNative.txt
pacman -S --needed - < pkglistAur.txt
break;;
Desktop )
pacman -S --needed - < pkglistNativeDesktop.txt
pacman -S --needed - < pkglistAurDesktop.txt
break;;
Skip )
echo "Skipping.";
break;;
esac
done
echo "Packages done installing."
echo "=================================="
echo
# ===========================================
# Setup bash dotfiles
# ===========================================
echo "Configuring bash dotfiles."
echo "Press [Enter] to continue..."
while true; do
read -s -n 1 input
if [[ $input = '' ]]; then break; fi
done
"$HERE"/bash/setup.sh
echo "=================================="
echo
# ===========================================
# Setup i3
# ===========================================
while true; do
read -p "Would you like to configure i3? [Y/n]: " yn
case $yn in
"[Yy]*"|"" )
"$HERE"/i3/setup.sh
break;;
[Nn]* )
echo "Skipping i3 setup.";
break;;
* ) echo "Please answer yes or no.";;
esac
done
echo "=================================="
echo
# ===========================================
# Setup vim
# ===========================================
echo "Optional Vim setup:"
echo "Would you like to configure..."
echo " => NeoVim dotfiles and packages from git@github.com:smeyerre/vim-config.git (Recommended)"
echo " => Old Vim dotfiles from github.com:Samwisemr/vimrc.git"
echo " => Skip Vim setup"
select yn in "NeoVim" "Vim" "Skip"; do
case $yn in
NeoVim )
"$HERE"/vim/neoVimSetup.sh;
break;;
Vim )
"$HERE"/vim/vimSetup.sh;
break;;
Skip )
echo "Skipping vim setup.";
break;;
esac
done
echo "=================================="
echo
# ===========================================
echo "All set up!"
echo "You may want to restart your computer"