From c990c0f9a0c221e87ff26e8bff0f1e437da5cfaa Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:34:56 +0000 Subject: [PATCH] shorten sed for adding ILoveCandy sed's "a" command can be used for this (ty LARBS :P) --- easy-arch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 4f15cde..0f3b9d6 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -430,7 +430,7 @@ EOF # Pacman eye-candy features. print "Enabling colours, animations, and parallel in pacman." -sed -i 's/#Color/Color\nILoveCandy/;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf +sed -i '/#Color/a ILoveCandy;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf # Enabling various services. print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd."