diff options
author | Yann Herklotz <git@yannherklotz.com> | 2023-04-20 20:19:22 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2023-04-20 20:19:22 +0100 |
commit | c67a351baadd518a722586205864c891eea0bed6 (patch) | |
tree | e7750f2cbdbd10027fac8f43db287405d7f56faa /zsh-fish | |
parent | 6c6eed68316340cd0e94906878b6924bdb3be6d0 (diff) | |
download | dotfiles-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/.zshrc | 12 |
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 |