ᕕ( ᐛ )ᕗ Jimyag's Blog

Ubuntu 安装 kitty

sudo apt install curl -y curl -L https://sw.kovidgoyal.net/kitty/installer.sh | 

sh /dev/stdin launch=n sudo ln -s ~/.local/kitty.app/bin/kitty /usr/local/bin/ 

cp ~/.local/kitty.app/share/applications/kitty.desktop 
~/.local/share/applications/ 

cp ~/.local/kitty.app/share/applications/kitty-
open.desktop ~/.local/share/applications/ 

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 

cp ~/.local/kitty.app/share/applications/kitty.desktop ~/Desktop 

sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/Desktop/kitty*.desktop 

sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/Desktop/kitty*.desktop 

gio set ~/Desktop/kitty*.desktop metadata::trusted true 

chmod a+x ~/Desktop/kitty*.desktop 

mkdir -p ~/.config/kitty/ 

touch ~/.config/kitty/kitty.conf 

# update 
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin launch=n

#ubuntu #kitty