Skip to content

nix-profile.fish: Do not check $USER#13041

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
illia-bobyr:fish-profile-do-not-test-USER
Apr 17, 2025
Merged

nix-profile.fish: Do not check $USER#13041
Mic92 merged 1 commit intoNixOS:masterfrom
illia-bobyr:fish-profile-do-not-test-USER

Conversation

@illia-bobyr
Copy link
Copy Markdown
Contributor

Motivation

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.

Context

If both #12423 and #13040 are merged in addition to this change, nix-profile.fish and nix-profile-daemon.fish become identical.

The original list of changes between these files is tracked here.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

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.
@illia-bobyr illia-bobyr requested a review from edolstra as a code owner April 17, 2025 00:19
@Mic92 Mic92 merged commit 6fe0545 into NixOS:master Apr 17, 2025
12 checks passed
@illia-bobyr illia-bobyr deleted the fish-profile-do-not-test-USER branch April 18, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants