mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-08-10 08:09:35 +00:00
chore: update arch scripts and add vc alias
This commit is contained in:
parent
061b0923bc
commit
69ca2dd73b
3 changed files with 5 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ function set_locale
|
||||||
sed -i 's/#en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
|
sed -i 's/#en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
echo 'LANG=en_US.UTF-8' >/etc/locale.conf
|
echo 'LANG=en_US.UTF-8' >/etc/locale.conf
|
||||||
touch /etc/vconsole.conf
|
echo 'KEYMAP=us' >/etc/vconsole.conf
|
||||||
end
|
end
|
||||||
|
|
||||||
function set_hostname -a new_hostname
|
function set_hostname -a new_hostname
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,6 @@ if status is-interactive
|
||||||
alias vv 'virt-viewer'
|
alias vv 'virt-viewer'
|
||||||
alias vi 'virt-install'
|
alias vi 'virt-install'
|
||||||
alias vs 'virsh'
|
alias vs 'virsh'
|
||||||
|
alias vc 'virsh console'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ arch)
|
||||||
sudo pacman --sync --refresh --sysupgrade --noconfirm
|
sudo pacman --sync --refresh --sysupgrade --noconfirm
|
||||||
sudo pacman --sync --needed --noconfirm base-devel go bat
|
sudo pacman --sync --needed --noconfirm base-devel go bat
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
if [ ! -d "yay" ]; then
|
if [ ! -d "yay" ]; then
|
||||||
git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git
|
||||||
fi
|
fi
|
||||||
|
|
@ -69,9 +70,10 @@ arch)
|
||||||
echo "Installation aborted."
|
echo "Installation aborted."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cd ..
|
|
||||||
|
|
||||||
log 'Installing packages with yay'
|
log 'Installing packages with yay'
|
||||||
|
yay -Y --save --devel
|
||||||
|
yay -Y --save --answerdiff All
|
||||||
yay --sync --noconfirm "${arch_pkgs[@]}"
|
yay --sync --noconfirm "${arch_pkgs[@]}"
|
||||||
;;
|
;;
|
||||||
debian | ubuntu)
|
debian | ubuntu)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue