diff --git a/scripts/nix-profile.fish.in b/scripts/nix-profile.fish.in index 59b3c695e..c1421b097 100644 --- a/scripts/nix-profile.fish.in +++ b/scripts/nix-profile.fish.in @@ -1,5 +1,5 @@ # Only execute this file once per shell. -if test -z "$HOME" || test -z "$USER" || \ +if test -z "$HOME" || \ test -n "$__ETC_PROFILE_NIX_SOURCED" exit end