1
0
chezmoi/scripts/archlinux.sh

42 lines
633 B
Bash
Raw Normal View History

2024-08-03 09:52:03 +00:00
#!/usr/bin/env bash
2024-08-03 09:52:03 +00:00
# include lib
2024-08-03 10:19:08 +00:00
. ${CHEZMOI_WORKING_TREE}/scripts/utils.sh
2024-08-02 23:28:45 +00:00
# Packages to install
packages=(
2024-08-03 09:52:03 +00:00
bubblewrap
curl
fzf
pass
libyaml
ranger
tmux
trash-cli
ueberzug
unzip
wget
zip
zoxide
)
2024-08-03 09:52:03 +00:00
## Update system
2024-08-03 10:27:29 +00:00
inf "updating system..."
2024-08-03 09:52:03 +00:00
sudo pacman -Syu --noconfirm --quiet
2024-08-03 09:52:03 +00:00
## Install yay
if [ ! $(command -v yay) ]; then
2024-08-03 10:27:29 +00:00
install_binary "yay"
2024-08-03 09:52:03 +00:00
fi
2024-08-03 09:52:03 +00:00
## Install packages
for package in ${packages[@]}; do
2024-08-03 10:27:29 +00:00
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
install_binary $package "yay"
else
inf "${package} already installed."
fi
2024-08-03 09:52:03 +00:00
done