Merge pull request #441 from i-c-u-p/patch-2
cleanup sed commands for pacman paralleldownloads, colors
This commit is contained in:
commit
0140eebc63
1 changed files with 2 additions and 2 deletions
4
larbs.sh
4
larbs.sh
|
@ -199,10 +199,10 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||||
|
|
||||||
# Make pacman colorful, concurrent downloads and Pacman eye-candy.
|
# Make pacman colorful, concurrent downloads and Pacman eye-candy.
|
||||||
grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
|
grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
|
||||||
sed -i "s/^#ParallelDownloads.*$/ParallelDownloads = 5/;s/^#Color$/Color/" /etc/pacman.conf
|
sed -i "s/^#ParallelDownloads.*/ParallelDownloads = 5/;/Color$/s/^#//" /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)/;/MAKEFLAGS/s/^#//" /etc/makepkg.conf
|
||||||
|
|
||||||
manualinstall yay || error "Failed to install AUR helper."
|
manualinstall yay || error "Failed to install AUR helper."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue