Closed dezren39 closed 2 weeks ago
Are you sure zsh.interactiveShellInit
and bash.interactiveShellInit
exist as home-manager options? I can't get it to work in my config, I can only find fish.interactiveShellInit
in home-manager options search and manual
fixes: #14
i considered a 'shell' attrset that had the per-shell enabled stuff in that, but decided to start simpler. there's at least one example like this in nixpkgs for the 'foot' program.
https://github.com/NixOS/nixpkgs/blob/ee8bdf4f09fdb4809ff8f2202decbfd02450edc3/nixos/modules/programs/foot/default.nix#L83
i left the integration enabled by default for all 3 main shell programs. i figure it's more common to want the commands that not.
i also considered that the content of
brew shellenv
could easily be generated from the prefix and other info already within the module.If you would prefer that route I can rework this, I think as-is does work fine though and it aligns with some homebrew instructions.
per homebrew docs, homebrew stuff is installed in front of the existing nix path which should prevent brew programs from failing in strange ways.
Example content of my brew shellenv command output:
Definitely could generate this ourselves if we wanted.
I'm not sure if manpath and infopath are correct for nix.
testing done: i opened each shell and saw that 'cowsay' was accessible.