summaryrefslogtreecommitdiffstats
path: root/dot_config/zsh
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-11-06 16:14:56 -0600
committerMatt Strapp <matt@mattstrapp.net>2024-11-06 16:14:56 -0600
commit79395a98c5a4fccf2cdf65b85904362e66844530 (patch)
tree07a70f0ea812951566863694116b4fff02457107 /dot_config/zsh
parentsbell formatting (diff)
downloaddotfiles-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>
Diffstat (limited to 'dot_config/zsh')
-rw-r--r--dot_config/zsh/aliasrc8
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