From 24194e7d6da87c1fe00024d3bfcb56f070bd0fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 5 Nov 2015 03:17:47 +0100 Subject: [PATCH] Move environment variables from xinitrc to zprofile. --- x/xinitrc | 1 - zsh/zprofile | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/x/xinitrc b/x/xinitrc index af0861b..2096be4 100755 --- a/x/xinitrc +++ b/x/xinitrc @@ -1,6 +1,5 @@ #!/bin/bash -export LOGDIR="$HOME/.var/log" LOGFILE="$LOGDIR/xinitrc.log" log() { diff --git a/zsh/zprofile b/zsh/zprofile index dc8a20b..2de3091 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -20,9 +20,12 @@ export EDITOR="vim" export VISUAL="vim" export BROWSER="firefox" +export LOGDIR="$HOME/.var/log" +export RUNDIR="$HOME/.var/run" + if [[ -z "$SSH_CONNECTION" ]] ; then eval $(ssh-agent -s) - + [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx fi