zsh: Fix setting of machine env variables

This commit is contained in:
2020-03-04 08:44:37 +01:00
parent 761a5b87e7
commit 730f106cd9

View File

@@ -47,6 +47,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
@@ -55,7 +59,3 @@ if [[ -z $DISPLAY ]] ; then
tmux new-session -A -s tmux-tty-$XDG_VTNR
fi
fi
{% for k, v in machine.environment.items() %}
export {{ k }}="{{ v }}"
{% endfor %}