3 ms·
Hey there! Looks like you may have missed the Nix/Generic and Nix/NixOS tabs at https://flox.dev/docs/install-flox/ https://flox.dev/docs/install-flox/? Do thos
by mkenigs 3y ago
Hey there! Looks like you may have missed the Nix/Generic and Nix/NixOS tabs at https://flox.dev/docs/install-flox/ https://flox.dev/docs/install-flox/? Do those satisfy the side by side use case you’re talking about?
I think the best way to use fish at the moment is `FLOX_SHELL=zsh flox activate -- fish`. That doesn’t support aliases but should mostly work
Are you hoping to actually hack on the source or just trying to understand how to come up with a workaround? We error for any shell other than bash or zsh somewhere around https://github.com/flox/flox/blob/9e18a3ceaa185006bae95a482723055ffcdc5fd4/cli/flox/src/commands/environment.rs#L566 https://github.com/flox/flox/blob/9e18a3ceaa185006bae95a4827...
If you want to take a crack at hacking on it I’d be more than happy to give more background!
- pxc 3y ago> Hey there! Looks like you may have missed the Nix/Generic and Nix/NixOS tabs at https://flox.dev/docs/install-flox/ https://flox.dev/docs/install-flox/? Do those satisfy the side by side use case you’re talking about? I totally did! Those are what I was looking for. (Although I'm glad I missed them in a way because I'm happy to have gotten to explore the behavior of the Flox installer when there's an existing Nix install already.) How embarrassing! Thanks :) > I think the best way to use fish at the moment is `FLOX_SHELL=zsh flox activate -- fish`. That doesn’t support aliases but should mostly work Thanks! I'll try that for sure. > Are you hoping to actually hack on the source or just trying to understand how to come up with a workaround? More the latter, especially because I don't totally know yet how interested I am in Flox. But I do love Fish and I did once work on some hairy issues in shell initialization for Fish in NixOS, so this kind of shell environment setup is the kind of thing that I've enjoyed plugging away at in the past, haha. At the same time I have virtually no Rust experience. That link is already pretty helpful, since I have a sense of where the shell code finally comes in, now. But I am curious about how the thing works, and I miiiiiight try to mess around, so if the shell init stuff is something you've worked on and are proud of/excited to share about, I'd love to hear more about it!
- mkenigs 3y agoYes I have worked on it and would love to help if you want to poke around! If you have more questions I can answer on our Slack https://go.flox.dev/slack https://go.flox.dev/slack. It's not completely straightforward how it all works