From 4184710f8f6fb88bc686f83c90239f52fd9b445e Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 12 Aug 2022 01:50:17 -0500 Subject: fix zirless pacman.conf config --- zirless.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zirless.sh b/zirless.sh index 51a7a53..9ca088c 100644 --- a/zirless.sh +++ b/zirless.sh @@ -206,10 +206,11 @@ adduserandpass || error "Error adding username and/or password." # in a fakeroot environment, this is required for all builds with AUR. newperms "%wheel ALL=(ALL) NOPASSWD: ALL" -# Make pacman and paru colorful and adds eye candy on the progress bar because why not. -grep -q "^Color" /etc/pacman.conf || sed -i "s/^#Color$/Color/" /etc/pacman.conf -grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a #ILoveCandy" /etc/pacman.conf -grep -q "ParallelDownloads" /etc/pacman.conf || sed -i "/ILoveCandy/a ParallelDownloads = 6" /etc/pacman.conf +# Make pacman and paru colorful but turns off ilovecandy on the progress bar. +grep -q "^Color" /etc/pacman.conf || sed -i "s/^#Color$/Color/" /etc/pacman.conf || + sed -i "/UseSyslog/a Color" /etc/pacman.conf +grep -q "^ILoveCandy" /etc/pacman.conf && sed -i "s/^ILoveCandy/#ILoveCandy" /etc/pacman.conf +grep -q "^#ParallelDownloads" /etc/pacman.conf && sed -i "s/^#ParallelDownloads/ParallelDownloads/" /etc/pacman.conf # Use all cores for compilation. sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf -- cgit v1.2.3