aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2023-04-20 20:19:22 +0100
committerYann Herklotz <git@yannherklotz.com>2023-04-20 20:19:22 +0100
commitc67a351baadd518a722586205864c891eea0bed6 (patch)
treee7750f2cbdbd10027fac8f43db287405d7f56faa
parent6c6eed68316340cd0e94906878b6924bdb3be6d0 (diff)
downloaddotfiles-c67a351baadd518a722586205864c891eea0bed6.tar.gz
dotfiles-c67a351baadd518a722586205864c891eea0bed6.zip
Remove home pinging for kitty and add ssh check to zshrc
-rw-r--r--kitty/.config/kitty/kitty.conf2
-rw-r--r--zsh-fish/.zshrc12
2 files changed, 12 insertions, 2 deletions
diff --git a/kitty/.config/kitty/kitty.conf b/kitty/.config/kitty/kitty.conf
index e7f0ab9..1dd519b 100644
--- a/kitty/.config/kitty/kitty.conf
+++ b/kitty/.config/kitty/kitty.conf
@@ -1315,7 +1315,7 @@ allow_remote_control yes
#: exe_search_path +/some/appended/path
#: exe_search_path -/some/excluded/path
-# update_check_interval 24
+update_check_interval 0
#: The interval to periodically check if an update to kitty is
#: available (in hours). If an update is found, a system notification
diff --git a/zsh-fish/.zshrc b/zsh-fish/.zshrc
index 09669b6..6d543bc 100644
--- a/zsh-fish/.zshrc
+++ b/zsh-fish/.zshrc
@@ -1 +1,11 @@
-exec /usr/local/bin/fish
+SESSION_TYPE=local
+
+if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
+ SESSION_TYPE=remote/ssh
+else
+ case $(ps -o comm= -p "$PPID") in
+ sshd|*/sshd) SESSION_TYPE=remote/ssh;;
+ esac
+fi
+
+[ "$SESSION_TYPE" != "remote/ssh" ] && exec /usr/bin/fish