Fixed kitty_theme causing i/o errors in other terminals

This commit is contained in:
2024-11-28 10:42:37 -05:00
parent aa3a7e15e4
commit 4d81409de8

View File

@@ -39,12 +39,14 @@ in
} }
alias vi="nvim" alias vi="nvim"
kitty_theme() { kitty_theme() {
if [ -n "$SSH_CONNECTION" ]; then if [ $TERM = "kitty" ]; then
kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf if [ -n "$SSH_CONNECTION" ]; then
elif [ "$name" = "nix-shell-env" ] || [ "$NIX_SHELL" = "true" ]; then kitty @ set-colors -a ~/.config/kitty/ssh-theme.conf
kitty @ set-colors -a ~/.config/kitty/nix-shell-theme.conf elif [ "$name" = "nix-shell-env" ] || [ "$NIX_SHELL" = "true" ]; then
else kitty @ set-colors -a ~/.config/kitty/nix-shell-theme.conf
kitty @ set-colors -a ~/.config/kitty/default-theme.conf else
kitty @ set-colors -a ~/.config/kitty/default-theme.conf
fi
fi fi
} }
grimblast() { grimblast() {