1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

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.
This commit is contained in:
Illia Bobyr 2025-01-13 19:25:06 -08:00
parent b509502bd5
commit 66ae8f4f44
No known key found for this signature in database
GPG key ID: 4D72E6A090EB3E9E

View file

@ -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