aboutsummaryrefslogtreecommitdiffstats
path: root/zsh-fish
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 /zsh-fish
parent6c6eed68316340cd0e94906878b6924bdb3be6d0 (diff)
downloaddotfiles-c67a351baadd518a722586205864c891eea0bed6.tar.gz
dotfiles-c67a351baadd518a722586205864c891eea0bed6.zip
Remove home pinging for kitty and add ssh check to zshrc
Diffstat (limited to 'zsh-fish')
-rw-r--r--zsh-fish/.zshrc12
1 files changed, 11 insertions, 1 deletions
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