From 79395a98c5a4fccf2cdf65b85904362e66844530 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 6 Nov 2024 16:14:56 -0600 Subject: add kitty back but only when not running in SSH Signed-off-by: Matt Strapp --- dot_config/zsh/aliasrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dot_config/zsh/aliasrc') diff --git a/dot_config/zsh/aliasrc b/dot_config/zsh/aliasrc index d76be18..37a6f17 100644 --- a/dot_config/zsh/aliasrc +++ b/dot_config/zsh/aliasrc @@ -65,7 +65,7 @@ alias \ alias adb='HOME="$XDG_DATA_HOME"/android adb' -# Use the SSH kitten when possible. -# if [ "$TERM" = "xterm-kitty" ]; then -# alias sshs='sshs -t "kitten ssh \"{{{name}}}\""' -# fi \ No newline at end of file +# Use the SSH kitten when possible. (but not already in SSH) +if [ "$TERM" = "xterm-kitty" ] && [ -z "$SSH_TTY" ]; then + alias sshs='sshs -t "kitten ssh \"{{{name}}}\""' +fi \ No newline at end of file -- cgit v1.2.3