2024-08-03 09:52:03 +00:00
|
|
|
#!/usr/bin/env bash
|
2024-08-02 14:21:24 +00:00
|
|
|
|
2024-08-03 09:52:03 +00:00
|
|
|
FULL_PATH_TO_SCRIPT="$(realpath "${BASH_SOURCE[-1]}")"
|
|
|
|
SCRIPT_DIRECTORY="$(dirname "$FULL_PATH_TO_SCRIPT")"
|
2024-08-02 14:21:24 +00:00
|
|
|
|
2024-08-03 09:52:03 +00:00
|
|
|
# include lib
|
2024-08-03 10:16:06 +00:00
|
|
|
. ${CHEZMOI_WORKING_TREE}/utils.sh
|
2024-08-02 14:21:24 +00:00
|
|
|
|
2024-08-02 23:28:45 +00:00
|
|
|
|
2024-08-02 14:21:24 +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-02 14:21:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2024-08-03 09:52:03 +00:00
|
|
|
## Update system
|
|
|
|
inf "updating system..."
|
|
|
|
sudo pacman -Syu --noconfirm --quiet
|
2024-08-02 14:21:24 +00:00
|
|
|
|
2024-08-03 09:52:03 +00:00
|
|
|
## Install yay
|
|
|
|
if [ ! $(command -v yay) ]; then
|
|
|
|
inf "installing yay..."
|
|
|
|
install_binary "yay"
|
|
|
|
fi
|
2024-08-02 14:21:24 +00:00
|
|
|
|
2024-08-03 09:52:03 +00:00
|
|
|
## Install packages
|
|
|
|
for package in ${packages[@]}; do
|
|
|
|
if [ "$(yay -Qq $package 2> /dev/null)" != $package ]; then
|
|
|
|
inf "installing ${package}..."
|
|
|
|
install_binary $package "yay"
|
|
|
|
fi
|
|
|
|
done
|