Simplify getting dependencies

This commit is contained in:
2026-01-09 23:21:12 +01:00
parent bb5855fec9
commit 2984ef9193

View File

@@ -7,22 +7,16 @@ BACKUP_LIMIT=3
# Check dependencies # Check dependencies
echo -e '\nInstalling dependencies ...' >&2 echo -e '\nInstalling dependencies ...' >&2
! which curl >/dev/null 2>&1 && sudo pacman -Syu curl
! which git >/dev/null 2>&1 && sudo pacman -Syu git
if ! which vim >/dev/null 2>&1; then
sudo pacman -Syu neovim
sudo ln -s /usr/bin/nvim /usr/local/bin/vim
fi
! which rankmirrors >/dev/null 2>&1 && sudo pacman -Syu pacman-contrib
if ! which yay >/dev/null 2>&1; then if ! which yay >/dev/null 2>&1; then
sudo pacman -Syu
git clone https://aur.archlinux.org/yay.git git clone https://aur.archlinux.org/yay.git
cd yay cd yay
makepkg -cirs makepkg -cirs
cd .. cd ..
rm -fr yay rm -fr yay
fi fi
! which yaycache >/dev/null 2>&1 && yay -Syu yaycache yay -Syu --needed curl git neovim pacman-contrib yaycache
[ ! -e /usr/local/bin/vim ] && sudo ln -s /usr/bin/nvim /usr/local/bin/vim
# Backup system # Backup system
if which btrfs >/dev/null; then if which btrfs >/dev/null; then
yay -Syu --needed snapper yay -Syu --needed snapper