NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.08k forks source link

Cleanup: shell initialization #31322

Open cbarrett opened 7 years ago

cbarrett commented 7 years ago

In #30284 I noted that we have three separate variables to track if either fish, bash or zsh init files had been sourced.

Braindump: It seems like it would be smart to not only have a single variable that tracks if nix-related initialization has been run, but also to do this initialization in a single file. We could write this config into a single file for POSIX-compataible shells, and use fenv or a fenv-like wrapper for non-POSIX shells. For any per-shell customization needed the file would check $SHELL and execute the appropriate initialization code. This file could even potentially be assembled dynamically on nixos/nix-darwin at least.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.