diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-11-06 16:14:56 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-11-06 16:14:56 -0600 |
commit | 79395a98c5a4fccf2cdf65b85904362e66844530 (patch) | |
tree | 07a70f0ea812951566863694116b4fff02457107 | |
parent | sbell formatting (diff) | |
download | dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.tar dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.tar.gz dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.tar.bz2 dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.tar.lz dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.tar.xz dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.tar.zst dotfiles-79395a98c5a4fccf2cdf65b85904362e66844530.zip |
add kitty back but only when not running in SSH
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r-- | dot_config/zsh/aliasrc | 8 |
1 files changed, 4 insertions, 4 deletions
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 |