zsh: Fix environment-specific variables
This commit is contained in:
@@ -46,6 +46,10 @@ export ACPI_LID_NAME=LID
|
|||||||
|
|
||||||
umask 0022
|
umask 0022
|
||||||
|
|
||||||
|
{% for k, v in machine.environment.items() %}
|
||||||
|
export {{ k }}="{{ v }}"
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
# exec startx breaks some logind fuckery, without exec it works
|
# exec startx breaks some logind fuckery, without exec it works
|
||||||
if [[ -z $DISPLAY ]] ; then
|
if [[ -z $DISPLAY ]] ; then
|
||||||
if (( $XDG_VTNR == {{ user.vt }} )) ; then
|
if (( $XDG_VTNR == {{ user.vt }} )) ; then
|
||||||
@@ -54,7 +58,3 @@ if [[ -z $DISPLAY ]] ; then
|
|||||||
tmux new-session -A -s tmux-tty-$XDG_VTNR
|
tmux new-session -A -s tmux-tty-$XDG_VTNR
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{% for k, v in machine.environment.items() %}
|
|
||||||
{{ k }}="{{ v }}"
|
|
||||||
{% endfor %}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user