PortValhalla/scripts/Arch/Software/pacman/main.fish

27 lines
597 B
Fish
Raw Normal View History

2024-07-14 07:44:32 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../lib/software.fish"
2024-07-14 07:44:32 +00:00
function installSW
configureSW
end
function configureSW
2024-07-15 11:23:00 +00:00
sudo sed -i \
2024-07-14 20:34:06 +00:00
-e '/^\[options\]$/,/^\[/{' \
2024-07-14 08:10:14 +00:00
-e 's/^#\?\(Color\)$/\1/;' \
-e '/^# Misc Options$/{' (
2024-07-14 07:44:32 +00:00
# -e "a ILoveCandy"
) \
-e "};" \
2024-07-14 20:34:06 +00:00
-e "}" \
2024-07-14 08:10:14 +00:00
-e '/^#\?\[multilib\]$/,/^$/{ s/^#\?\(.*\)$/\1/; }' \
2024-07-14 07:44:32 +00:00
/etc/pacman.conf
2024-07-15 11:23:00 +00:00
sudo pacman -Sy
2024-07-14 07:44:32 +00:00
end
2024-07-14 08:09:57 +00:00
runInstaller --force $argv
2024-07-14 07:44:32 +00:00
end