chore: update arch scripts and add vc alias

This commit is contained in:
mitchell 2026-07-27 00:39:24 -04:00
parent 061b0923bc
commit 69ca2dd73b
3 changed files with 5 additions and 2 deletions

View file

@ -95,7 +95,7 @@ function set_locale
sed -i 's/#en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' >/etc/locale.conf
touch /etc/vconsole.conf
echo 'KEYMAP=us' >/etc/vconsole.conf
end
function set_hostname -a new_hostname

View file

@ -19,5 +19,6 @@ if status is-interactive
alias vv 'virt-viewer'
alias vi 'virt-install'
alias vs 'virsh'
alias vc 'virsh console'
end
end

View file

@ -56,6 +56,7 @@ arch)
sudo pacman --sync --refresh --sysupgrade --noconfirm
sudo pacman --sync --needed --noconfirm base-devel go bat
cd /tmp
if [ ! -d "yay" ]; then
git clone https://aur.archlinux.org/yay.git
fi
@ -69,9 +70,10 @@ arch)
echo "Installation aborted."
exit 1
fi
cd ..
log 'Installing packages with yay'
yay -Y --save --devel
yay -Y --save --answerdiff All
yay --sync --noconfirm "${arch_pkgs[@]}"
;;
debian | ubuntu)