From 5f1c309bc7f9924f2506f88cba345dd8b2e09cd8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 7 May 2009 10:40:22 +0200 Subject: Automatically start X on saviour and nemesis --- etc/hosts/profile-nemesis | 6 ++++++ etc/hosts/profile-saviour | 1 + etc/profile | 1 + 3 files changed, 8 insertions(+) create mode 100644 etc/hosts/profile-nemesis create mode 120000 etc/hosts/profile-saviour (limited to 'etc') diff --git a/etc/hosts/profile-nemesis b/etc/hosts/profile-nemesis new file mode 100644 index 0000000..2b06433 --- /dev/null +++ b/etc/hosts/profile-nemesis @@ -0,0 +1,6 @@ +## vim:ft=zsh +if [[ ! -e /tmp/.afterboot ]] { + touch /tmp/.afterboot + unsetopt bg_nice + startx &! exit +} diff --git a/etc/hosts/profile-saviour b/etc/hosts/profile-saviour new file mode 120000 index 0000000..193e6be --- /dev/null +++ b/etc/hosts/profile-saviour @@ -0,0 +1 @@ +profile-nemesis \ No newline at end of file diff --git a/etc/profile b/etc/profile index ed9a40d..6f34cb9 100644 --- a/etc/profile +++ b/etc/profile @@ -15,5 +15,6 @@ 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 unfunction pr_info -- cgit v1.2.3