mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 22:36:03 +00:00
71b11f7847
Change wget to curl
31 lines
980 B
Bash
Executable File
31 lines
980 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
. ../common-script.sh
|
|
|
|
setupKitty() {
|
|
echo "Install Kitty if not already installed..."
|
|
if ! command_exists kitty; then
|
|
case ${PACKAGER} in
|
|
pacman)
|
|
$ESCALATION_TOOL "${PACKAGER}" -S --needed --noconfirm kitty
|
|
;;
|
|
*)
|
|
$ESCALATION_TOOL "${PACKAGER}" install -y kitty
|
|
;;
|
|
esac
|
|
else
|
|
echo "Kitty is already installed."
|
|
fi
|
|
echo "Copy Kitty config files"
|
|
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
|
|
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
|
|
fi
|
|
mkdir -p "${HOME}/.config/kitty/"
|
|
curl -sSLo "${HOME}/.config/kitty/kitty.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/kitty.conf
|
|
curl -sSLo "${HOME}/.config/kitty/nord.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/nord.conf
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
setupKitty
|