2023-11-20 12:28:28 -06:00
|
|
|
#!/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"
|
2023-11-22 22:07:25 -06:00
|
|
|
elif command_exists "yay"; then
|
2023-11-23 16:03:11 -06:00
|
|
|
yay -S kitty schildichat-desktop-bin digikam eog man-db neovim --noconfirm --needed
|
2023-11-20 12:28:28 -06:00
|
|
|
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
|