Skip to content

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

Merged
Mic92 merged 2 commits into
NixOS:masterfrom
therealpxc:fish
May 22, 2017
Merged

Mic92 merged 2 commits into
NixOS:masterfrom
therealpxc:fish

Conversation

@therealpxc

@therealpxc therealpxc commented May 16, 2017 •

Copy link
Copy Markdown
Contributor
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
Copy Markdown
Contributor Author

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

@rnhmjoj

rnhmjoj commented May 17, 2017 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Is it just that preventing this from being merged?

@rnhmjoj

rnhmjoj commented May 18, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

@therealpxc Yes please on both accounts from me.

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

Mic92 commented May 22, 2017

Copy link
Copy Markdown
Member

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.

4 participants