mirror of
https://github.com/nix-community/home-manager.git
synced 2025-04-14 00:07:15 +00:00
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.
9 lines
296 B
Text
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"
|