1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Merge pull request #13244 from stefanboca/sb/push-lmnqpuztqxmz

nix-profile{,-daemon}.fish: fix do not source twice
This commit is contained in:
Jörg Thalheim 2025-05-25 17:48:25 +02:00 committed by GitHub
commit 543cee1c92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View file

@ -1,10 +1,9 @@
# Only execute this file once per shell. # Only execute this file once per shell.
if test -z "$HOME" || \ if test -z "$HOME" || test -n "$__ETC_PROFILE_NIX_SOURCED"
test -n "$__ETC_PROFILE_NIX_SOURCED"
exit exit
end end
set --global __ETC_PROFILE_NIX_SOURCED 1 set --global --export __ETC_PROFILE_NIX_SOURCED 1
# Local helpers # Local helpers

View file

@ -1,10 +1,9 @@
# Only execute this file once per shell. # Only execute this file once per shell.
if test -z "$HOME" || \ if test -z "$HOME" || test -n "$__ETC_PROFILE_NIX_SOURCED"
test -n "$__ETC_PROFILE_NIX_SOURCED"
exit exit
end end
set --global __ETC_PROFILE_NIX_SOURCED 1 set --global --export __ETC_PROFILE_NIX_SOURCED 1
# Local helpers # Local helpers