From c67a351baadd518a722586205864c891eea0bed6 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 20 Apr 2023 20:19:22 +0100 Subject: Remove home pinging for kitty and add ssh check to zshrc --- kitty/.config/kitty/kitty.conf | 2 +- zsh-fish/.zshrc | 12 +++++++++++- 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 -- cgit