summaryrefslogtreecommitdiff
path: root/plugins/kitty/kitty.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kitty/kitty.plugin.zsh')
-rw-r--r--plugins/kitty/kitty.plugin.zsh16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/kitty/kitty.plugin.zsh b/plugins/kitty/kitty.plugin.zsh
new file mode 100644
index 000000000..1094236a7
--- /dev/null
+++ b/plugins/kitty/kitty.plugin.zsh
@@ -0,0 +1,16 @@
+#####################################################
+# Kitty plugin for oh-my-zsh #
+#####################################################
+
+if [[ "$TERM" == 'xterm-kitty' ]]; then
+ ## kssh
+ # Use this when your terminfo isn't recognized on remote hosts.
+ # 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
+ alias kssh="kitty +kitten ssh"
+ compdef kssh='ssh'
+ # Use this if kssh fails
+ alias kssh-slow="infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin"
+
+ # Change the colour theme
+ alias kitty-theme="kitty +kitten themes"
+fi