-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
57 lines (49 loc) · 1.68 KB
/
install
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
#!/bin/sh
echo '###############################'
echo '## ##'
echo '## 📦 Install packages ##'
echo '## ##'
echo '###############################'
echo
if ! builtin type -p 'yay' >/dev/null 2>&1; then
CWD=`pwd`
echo '🥣 Installing yay'
tmpdir="$(command mktemp -d)"
command cd "${tmpdir}" || return 1
sudo pacman -Sy --needed --noconfirm base base-devel git
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
cd $CWD
fi
echo '📦 Installing base packages'
yay --noconfirm
echo '📦 Installing packages'
curl -Lks https://raw.githubusercontent.com/tomdevelops/arch-post-install/main/packages.csv | tail -n +2 | cut -d, -f1 | yay -Sy --noconfirm -
# echo 'Configuring dotfiles'
# if [ "$1" != "ssh" ]
# then
# # Use https instead of ssh
# curl -Lks https://raw.githubusercontent.com/tomdevelops/dotfiles/arch/setup | /bin/bash
#else
# curl -Lks https://raw.githubusercontent.com/tomdevelops/dotfiles/arch/setup | /bin/bash -s ssh
#fi
echo
echo '🧹 Cleaning up unwanted packages'
yay -Qtdq | yay -Rns --noconfirm - 2>/dev/null
echo
echo
echo '🧹 Clear pacman and yay cache'
yay -Sc --noconfirm - 2>/dev/null
rm -rf ~/.cache/yay/* - 2>/dev/null
rm -rf ~/.cache/go-build/* - 2>/dev/null
sudo rm -rf /var/cache/pacman/pkg/* - 2>/dev/null
echo
echo
echo '###################################################'
echo '## ##'
echo '## 👏 Installation Complete ##'
echo '## reboot to use the new configurations ##'
echo '## ##'
echo '###################################################'
echo