diff options
| author | Blake Romero <blake@blkrom.com> | 2023-05-17 23:27:01 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2023-05-17 23:27:01 +0100 |
| commit | 502dc050ac69c278c99b99cd542791f9092fed5e (patch) | |
| tree | e5b1481fcfb937eda6f6dae699f72c54e25f22cd | |
| parent | cd6cb81c0f0388519cf1efe686c3c849866af168 (diff) | |
Replace sed actions with Vim to enable local servers in mirror list
| -rw-r--r-- | artix.sh | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -125,14 +125,9 @@ mv /mnt/boot/efi/EFI/boot/grubx64.efi to /mnt/boot/efi/EFI/boot/bootx86.efi curl -L "https://github.com/archlinux/svntogit-packages/raw/packages/pacman-mirrorlist/trunk/mirrorlist" \ -o /mnt/etc/pacman.d/mirrorlist-arch -# Uncomment arch mirrorlist -sed -i 's/^#//g' /mnt/etc/pacman.d/mirrorlist-arch - -# BETTER WAY but NOT WORKING: -# vim -c "/United Kingdom" \ -# -c "norm vip" \ -# -c "'<,'>s^#" \ -# /etc/pacman.d/mirrorlist-arch +# Uncomment location in Arch mirrorlist +vim -s <(printf "/United Kingdom\nvip:s/^#//g\n:wq\n") \ + /mnt/etc/pacman.d/mirrorlist-arch # add mirror list to pacman echo " |
