Update various arch installs

This commit is contained in:
askiiart 2023-11-20 12:28:28 -06:00
parent 3993e17ba0
commit 516af42ce8
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
5 changed files with 39 additions and 5 deletions

View file

@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -e
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
command_exists() { type "$1" &>/dev/null; }
echo "WARNING: Only Arch is fully supported"
if command_exists "apt-get"; then
sudo apt-get install kitty -y
echo "Please install SchildiChat, nvim/neovim"
elif command_exists "yum"; then
sudo yum install kitty -y
echo "Please install SchildiChat, nvim/neovim"
elif command_exists "pacman"; then
sudo pacman -S kitty --noconfirm --neeeded
yay -S schildichat-desktop-bin --noconfirm --needed
elif command_exists "zypp"; then
# Untested
sudo zypper install kitty -y
echo "Please install SchildiChat, nvim/neovim"
elif command_exists "emerge"; then
echo Not yet supported, exiting...
exit
elif command_exists "apk"; then
echo Not yet supported, exiting...
else
echo "Unsupported: unknown package manager and distro"
exit
fi

View file

@ -14,8 +14,8 @@ if command_exists "apt-get"; then
elif command_exists "yum"; then
sudo dnf install steam -y
elif command_exists "yay"; then
printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
read -p "Enable the multilib repo in /etc/pacman.conf - look above"
#printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
#read -p "Enable the multilib repo in /etc/pacman.conf - look above"
sudo $EDITOR /etc/pacman.conf
yay -S steam --noconfirm --needed
yay -S protonup-qt-bin dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed