-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpacman.sh
executable file
·31 lines (26 loc) · 861 Bytes
/
pacman.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
#!/bin/bash
sudo pacman -S --needed --noconfirm git
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
cd ..
rm -rf yay-bin
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key 3056513887B78AEB
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
sudo cp ./pacman/pacman.conf /etc/pacman.conf
echo "Do you want to install the packages for this dotfiles? (y/n)"
read install_packages
if [ $install_packages = "y" ]; then
yay -S --needed --noconfirm - < ./pacman/packages.txt
title
echo "Packages installed."
else
title
echo "Packages not installed."
fi
sudo usermod -aG input $USER
sudo usermod -aG seat $USER
# Change shell to fish
chsh -s /bin/fish