From 4d81409de8a675add031ac138f09f965bc5cecfd Mon Sep 17 00:00:00 2001 From: pagedmov Date: Thu, 28 Nov 2024 10:42:37 -0500 Subject: [PATCH] Fixed kitty_theme causing i/o errors in other terminals --- modules/home/environment/zsh/extraconfig.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/home/environment/zsh/extraconfig.nix b/modules/home/environment/zsh/extraconfig.nix index c3486a3..828a4e6 100644 --- a/modules/home/environment/zsh/extraconfig.nix +++ b/modules/home/environment/zsh/extraconfig.nix @@ -39,12 +39,14 @@ in } alias vi="nvim" kitty_theme() { - if [ -n "$SSH_CONNECTION" ]; then - kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf - elif [ "$name" = "nix-shell-env" ] || [ "$NIX_SHELL" = "true" ]; then - kitty @ set-colors -a ~/.config/kitty/nix-shell-theme.conf - else - kitty @ set-colors -a ~/.config/kitty/default-theme.conf + if [ $TERM = "kitty" ]; then + if [ -n "$SSH_CONNECTION" ]; then + kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf + elif [ "$name" = "nix-shell-env" ] || [ "$NIX_SHELL" = "true" ]; then + kitty @ set-colors -a ~/.config/kitty/nix-shell-theme.conf + else + kitty @ set-colors -a ~/.config/kitty/default-theme.conf + fi fi } grimblast() {