kitty.plugin.zsh
689 bytes
1#####################################################
2# Kitty plugin for oh-my-zsh #
3#####################################################
4
5if [[ "$TERM" == 'xterm-kitty' ]]; then
6 ## kssh
7 # Use this when your terminfo isn't recognized on remote hosts.
8 # See: https://sw.kovidgoyal.net/kitty/faq/#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-when-sshing-into-a-different-computer
9 alias kssh="kitty +kitten ssh"
10 compdef kssh='ssh'
11 # Use this if kssh fails
12 alias kssh-slow="infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin"
13
14 # Change the colour theme
15 alias kitty-theme="kitty +kitten themes"
16fi