setup.sh: export XDG_DATA_DIRS for consistency
By exporting it, we always make the new directories available to subprocesses, regardless of whether the environment variable existed before `nix-shell` was invoked.
This commit is contained in:
parent
84c58abdc4
commit
c8ae3d870c
|
@ -606,7 +606,7 @@ fi
|
||||||
|
|
||||||
PATH="${_PATH-}${_PATH:+${PATH:+:}}$PATH"
|
PATH="${_PATH-}${_PATH:+${PATH:+:}}$PATH"
|
||||||
HOST_PATH="${_HOST_PATH-}${_HOST_PATH:+${HOST_PATH:+:}}$HOST_PATH"
|
HOST_PATH="${_HOST_PATH-}${_HOST_PATH:+${HOST_PATH:+:}}$HOST_PATH"
|
||||||
XDG_DATA_DIRS="${_XDG_DATA_DIRS-}${_XDG_DATA_DIRS:+${XDG_DATA_DIRS:+:}}${XDG_DATA_DIRS-}"
|
export XDG_DATA_DIRS="${_XDG_DATA_DIRS-}${_XDG_DATA_DIRS:+${XDG_DATA_DIRS:+:}}${XDG_DATA_DIRS-}"
|
||||||
if (( "${NIX_DEBUG:-0}" >= 1 )); then
|
if (( "${NIX_DEBUG:-0}" >= 1 )); then
|
||||||
echo "final path: $PATH"
|
echo "final path: $PATH"
|
||||||
echo "final host path: $HOST_PATH"
|
echo "final host path: $HOST_PATH"
|
||||||
|
|
Loading…
Reference in New Issue