From 65065116befb237bf2fa6445f515ddec871c184f Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 12 Feb 2024 19:05:13 +0100 Subject: [PATCH] Enable kitty integration --- bash/kitty | 5 +++++ bash/rc | 1 + zsh/kitty | 6 ++++++ zsh/rc | 1 + 4 files changed, 13 insertions(+) create mode 100644 bash/kitty create mode 100644 zsh/kitty diff --git a/bash/kitty b/bash/kitty new file mode 100644 index 0000000..f0b6b07 --- /dev/null +++ b/bash/kitty @@ -0,0 +1,5 @@ +if test -n "$KITTY_INSTALLATION_DIR"; then + export KITTY_SHELL_INTEGRATION="enabled" + source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash" +fi + diff --git a/bash/rc b/bash/rc index 0bd8bb9..dbfe45e 100644 --- a/bash/rc +++ b/bash/rc @@ -14,6 +14,7 @@ source $DOTFILES_SHELL_DIR/chruby source $DOTFILES_BASH_DIR/fzf source $DOTFILES_SHELL_DIR/direnv source $DOTFILES_SHELL_DIR/kd +source $DOTFILES_BASH_DIR/kitty source $DOTFILES_SHELL_DIR/git_prompt_info GIT_PS1_SHOWDIRTYSTATE=1 diff --git a/zsh/kitty b/zsh/kitty new file mode 100644 index 0000000..5b9ae5f --- /dev/null +++ b/zsh/kitty @@ -0,0 +1,6 @@ +if test -n "$KITTY_INSTALLATION_DIR"; then + export KITTY_SHELL_INTEGRATION="enabled" + autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration + kitty-integration + unfunction kitty-integration +fi diff --git a/zsh/rc b/zsh/rc index 12206d4..97deea4 100644 --- a/zsh/rc +++ b/zsh/rc @@ -14,6 +14,7 @@ source $DOTFILES_ZSH_DIR/prompt source $DOTFILES_ZSH_DIR/fzf source $DOTFILES_SHELL_DIR/go source $DOTFILES_SHELL_DIR/direnv +source $DOTFILES_ZSH_DIR/kitty set -o ignoreeof unsetopt BEEP