Streamline pacman installation

This commit is contained in:
Manuel Thalmann 2024-07-14 09:44:32 +02:00
parent 0ce6b70b10
commit 97039d085a
2 changed files with 24 additions and 1 deletions

View file

@ -4,7 +4,7 @@ begin
function initialize -V dir
source "$dir/../Software/base-devel/main.fish"
"$dir/../Config/pacman/install.sh"
source "$dir/../Software/pacman/main.fish"
"$dir/../Software/yay/install.sh"
end

View file

@ -0,0 +1,23 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../../Scripts/software.fish"
function installSW
configureSW
end
function configureSW
sed -i \
-e "/^\[options\]$/,/^\[/{" \
-e "s/^#\?\(Color\)$/\1/;" \
-e "/^# Misc Options$/{" (
# -e "a ILoveCandy"
) \
-e "};" \
-e "/^#\?\[multilib\]$/,/^$/{ s/^#\?\(.*\)$/\1/; }" \
/etc/pacman.conf
pacinst -Sy
end
end