summaryrefslogtreecommitdiff
path: root/etc/.zprofile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-19 10:48:46 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-19 10:48:46 +0200
commit2a534720839f84d24becca09c058fabc27e6d545 (patch)
treef946c6ffe58cfaf2b452efea516541fb5ec3aa52 /etc/.zprofile
parentaf140554225f5f6cb97416bdadf4f7312433fc55 (diff)
Put X script directly into .zprofile
Diffstat (limited to 'etc/.zprofile')
-rw-r--r--etc/.zprofile10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/.zprofile b/etc/.zprofile
index cadc848..c311330 100644
--- a/etc/.zprofile
+++ b/etc/.zprofile
@@ -15,6 +15,14 @@ echo
[[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!"
[[ -r ${ZDIR}/local-profile ]] && source ${ZDIR}/local-profile
-[[ -r ${ZDIR}/hosts/profile-${HOST} ]] && source ${ZDIR}/hosts/profile-${HOST}
+
+if [[ ${HOST} == (remnant|saviour) && -z ${SSH_CONNECTION} && \
+ ! -e /tmp/.x-started ]] \
+{
+ touch /tmp/.x-started
+ unsetopt bg_nice
+ xinit /home/derf/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth \
+ $(mktemp --tmpdir serverauth.XXXXXXXXXX) &! exit
+}
unfunction pr_info