diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-19 10:48:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-19 10:48:46 +0200 |
commit | 2a534720839f84d24becca09c058fabc27e6d545 (patch) | |
tree | f946c6ffe58cfaf2b452efea516541fb5ec3aa52 /etc/.zprofile | |
parent | af140554225f5f6cb97416bdadf4f7312433fc55 (diff) |
Put X script directly into .zprofile
Diffstat (limited to 'etc/.zprofile')
-rw-r--r-- | etc/.zprofile | 10 |
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 |