avoid multiple additions of color/pac
This commit is contained in:
parent
7606c120a6
commit
73786da042
1 changed files with 2 additions and 1 deletions
3
larbs.sh
3
larbs.sh
|
@ -182,7 +182,8 @@ pacman --noconfirm --needed -S base-devel git >/dev/null 2>&1
|
||||||
newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
|
newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||||
|
|
||||||
# Make pacman and yay colorful and adds eye candy on the progress bar because why not.
|
# Make pacman and yay colorful and adds eye candy on the progress bar because why not.
|
||||||
sed -i "s/^#Color/Color/g;/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
|
grep "^Color" /etc/pacman.conf >/dev/null || sed -i "s/^#Color/Color/" /etc/pacman.conf
|
||||||
|
grep "ILoveCandy" /etc/pacman.conf >/dev/null || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
|
||||||
|
|
||||||
# Use all cores for compilation.
|
# Use all cores for compilation.
|
||||||
sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf
|
sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf
|
||||||
|
|
Loading…
Reference in a new issue