1
0
chezmoi/scripts/archlinux.sh
Jeff LANCE 97c9c2330a Up.
2024-08-03 12:27:29 +02:00

42 lines
633 B
Bash

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