Skip to content

Commit 45623cb

Browse files
committed
Improved faster_pacman's zsh function to also use our package directory as CacheDir
1 parent b7fe37f commit 45623cb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

airootfs/root/.zshrc.local

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ function cowsize_expand()
2525
function faster_pacman()
2626
{
2727
# Enables color output and parallel downloads to pacman.
28-
# I'd recommend you to select faster mirrors in the /etc/pacman.d/mirrorlist file.
28+
# Additionally, updates the CacheDir variable to use our /root/pkg directory.
29+
# As a recommendation, select faster mirrors in the /etc/pacman.d/mirrorlist file.
2930

30-
echo ">> Enabling parallel downloads for pacman ... <<"
31+
echo ">> Improving pacman's performance ... <<"
3132
sed -i "s/\#Color/Color/g" /etc/pacman.conf
3233
sed -i "s/\#ParallelDownloads/ParallelDownloads/g" /etc/pacman.conf
34+
sed -i "s/\#CacheDir.*/CacheDir = \/root\/pkg/g" /etc/pacman.conf
3335
}

0 commit comments

Comments
 (0)