1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-14 00:07:15 +00:00
home-manager/tests/modules/home-environment/session-variables-expected.txt
Ashish SHUKLA 32d4829d3f
home-environment: Stop exporting __HM_SESS_VARS_SOURCED
If the __HM_SESS_VARS_SOURCED is set in environment of parent process,
then the spawned child shell will inherit it, and won't set the
session variables one expects to be set in their home environment

And, I don't see any need for exporting environment variable, just
setting it is enough for it to be a guard.
2024-01-13 13:40:44 +01:00

9 lines
296 B
Text

# Only source this once.
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
__HM_SESS_VARS_SOURCED=1
@exportLocaleVar@
export V1="v1"
export V2="v2-v1"
export XDG_CACHE_HOME="/home/hm-user/.cache"
export XDG_CONFIG_HOME="/home/hm-user/.config"
export XDG_DATA_HOME="/home/hm-user/.local/share"