From 66ae8f4f443d45ac33f95c26ee5a2a8f816a25ec Mon Sep 17 00:00:00 2001 From: Illia Bobyr Date: Mon, 13 Jan 2025 19:25:06 -0800 Subject: [PATCH] nix-profile.fish: Do not check $USER While it seems unlikely that `$USER` will be unset while `$HOME` is set, as `$USER` is not used in the script and as `nix-profile-daemon.fish` is not checking `$USER`, it seems better to remove this check. `nix-profile.fish` and `nix-profile-daemon.fish` now become identical. --- scripts/nix-profile.fish.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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