mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Merge pull request #13590 from NixOS/mergify/bp/2.29-maintenance/pr-13244
nix-profile{,-daemon}.fish: fix do not source twice (backport #13244)
This commit is contained in:
commit
8a3d3b2dce
2 changed files with 6 additions and 8 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue