diff options
author | zachir <zachir@librem.one> | 2022-08-12 01:50:17 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-08-12 01:50:17 -0500 |
commit | 4184710f8f6fb88bc686f83c90239f52fd9b445e (patch) | |
tree | aa2998a131ad6c976659a46f98eca5bbe56b6d91 | |
parent | 661ba2727077949b0d0da8ae4bffc7d45e1528f8 (diff) |
fix zirless pacman.conf config
-rw-r--r-- | zirless.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |