From d227ae34d3d7b0fe854db29ddc2d7e676f5be5e7 Mon Sep 17 00:00:00 2001 From: Carlos Aldana Date: Tue, 13 Feb 2024 17:58:03 -0800 Subject: [PATCH] updates kitty installation --- ubuntu-dev.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ubuntu-dev.sh b/ubuntu-dev.sh index cb0eda5..b3ab9f7 100644 --- a/ubuntu-dev.sh +++ b/ubuntu-dev.sh @@ -18,7 +18,19 @@ sudo apt install alacritty -y sudo apt install tmux -y -sudo apt install kitty -y +###### Kitty +curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin +# Create symbolic links to add kitty and kitten to PATH (assuming ~/.local/bin is in +# your system-wide PATH) +ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/ +# Place the kitty.desktop file somewhere it can be found by the OS +cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/ +# If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file +cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/ +# Update the paths to the kitty and its icon in the kitty.desktop file(s) +sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop +sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop +###### sudo apt install software-properties-common sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF