aboutsummaryrefslogtreecommitdiffstats
path: root/zsh-fish/.zshrc
blob: 6d543bc2d71423eb3958c4821533d6800884f766 (plain)
1
2
3
4
5
6
7
8
9
10
11
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