diff options
author | Patrick Simianer <p@simianer.de> | 2017-05-21 16:33:25 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2017-05-21 16:33:25 +0200 |
commit | d046586dc26e103dc972167524d75069097669ee (patch) | |
tree | d3dc90293dc88d48d24352e0c8227d516fa678fa /zsh/.zlogin | |
parent | c2d8d631320a26ce4ec6f327cdf7a15a262afd0f (diff) |
zsh
Diffstat (limited to 'zsh/.zlogin')
-rw-r--r-- | zsh/.zlogin | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/zsh/.zlogin b/zsh/.zlogin index a6fa972..74561c3 100644 --- a/zsh/.zlogin +++ b/zsh/.zlogin @@ -1,5 +1,7 @@ -if [[ -z $DISPLAY ]] && (( $EUID != 0 )) { - [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) && - startx 1>/tmp/xsession-errors 2>&1 & -} +if [[ $(uname) == "Linux" ]]; then + if [[ -z $DISPLAY ]] && (( $EUID != 0 )) { + [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) && + startx 1>/tmp/xsession-errors 2>&1 & + } +fi |