summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/.zlogin5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh/.zlogin b/zsh/.zlogin
new file mode 100644
index 0000000..a6fa972
--- /dev/null
+++ b/zsh/.zlogin
@@ -0,0 +1,5 @@
+if [[ -z $DISPLAY ]] && (( $EUID != 0 )) {
+ [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) &&
+ startx 1>/tmp/xsession-errors 2>&1 &
+}
+