Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fish: source NixOS environment on non-login shells + source shell init on NixOS even when parent shell has done so #25835

Merged
merged 2 commits into from May 22, 2017

Conversation

therealpxc
Copy link
Contributor

@therealpxc therealpxc commented May 16, 2017

Motivation for this change

This fixes two new issues (#25800 and #25789) related to fish initialization (they are mentioned in the commit names)

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

This will need to be cherry-picked ahead to the master branch; I am on vacation and with shoddy/expensive/intermittent internet access, so I can't rebase and test on master right now because I'm running nixos-17.03 on this laptop and my connection is too slow for me to rebuild everything and test.

@therealpxc therealpxc changed the title Fish Fish: source NixOS environment on non-login shells + source shell init on NixOS even when parent shell has done so May 16, 2017
@therealpxc
Copy link
Contributor Author

I'll be back in a few hours to check on this, please let me know if there are any problems.

@rnhmjoj
Copy link
Contributor

rnhmjoj commented May 17, 2017

I have just tested this: the problem with mosh and git-annex seems fixed but I'm not sure about environment.shellAliases because I have never used it. They are only loaded in a interactive shell, is that the intended behavior?

@seanparsons
Copy link
Contributor

Is it just that preventing this from being merged?

@rnhmjoj
Copy link
Contributor

rnhmjoj commented May 18, 2017

Ok, aliases have always worked this way. Yes, I think this is ready to be merged.

@therealpxc therealpxc changed the base branch from release-17.03 to master May 20, 2017 04:01
@therealpxc
Copy link
Contributor Author

Rebased to master. Can we merge this?

(Should we then cherry-pick it back to nixos-17.03 since it fixes the outstanding issues named?)

@seanparsons
Copy link
Contributor

@therealpxc Yes please on both accounts from me.

@Mic92 Mic92 merged commit 7e40287 into NixOS:master May 22, 2017
@Mic92
Copy link
Member

Mic92 commented May 22, 2017

also backported.

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.

None yet

4 participants