From a5581941f81583c859c45691701ac2bbb74c8a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 14 Nov 2019 09:19:48 +0100 Subject: [PATCH] zsh: Fix environment-specific variables --- zsh/zprofile.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zsh/zprofile.j2 b/zsh/zprofile.j2 index 18dcab3..9ea7578 100644 --- a/zsh/zprofile.j2 +++ b/zsh/zprofile.j2 @@ -46,6 +46,10 @@ export ACPI_LID_NAME=LID umask 0022 +{% for k, v in machine.environment.items() %} +export {{ k }}="{{ v }}" +{% endfor %} + # exec startx breaks some logind fuckery, without exec it works if [[ -z $DISPLAY ]] ; then if (( $XDG_VTNR == {{ user.vt }} )) ; then @@ -54,7 +58,3 @@ if [[ -z $DISPLAY ]] ; then tmux new-session -A -s tmux-tty-$XDG_VTNR fi fi - -{% for k, v in machine.environment.items() %} -{{ k }}="{{ v }}" -{% endfor %}