summaryrefslogtreecommitdiff
path: root/zsh/.zlogin
blob: 478e1442095aae89363abb9dae4afb553fad09ff (plain)
1
2
3
4
5
6
7
8
9
10
if [[ $(uname) == "Linux" ]]; then
  if [ ! -n "$SSH_CLIENT" ] || [ ! -n "$SSH_TTY" ]; then
    if [[ -z $DISPLAY ]] && (( $EUID != 0 )) {
      [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) &&
        startx 1>/tmp/xsession-errors 2>&1 &
        vlock
    }
  fi
fi