Talk:Fish: Difference between revisions
| (2 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
:The whole idea of `exec`-ing midway through bashrc is wildly unsafe. It silently breaks `nix develop` which sources the user's bashrc, it similarly breaks `devenv shell`, and it also disables any extra lines added to the NixOS option where it's used. | :The whole idea of `exec`-ing midway through bashrc is wildly unsafe. It silently breaks `nix develop` which sources the user's bashrc, it similarly breaks `devenv shell`, and it also disables any extra lines added to the NixOS option where it's used. | ||
:We (devenv) get several reports a week from NixOS users blindly copy-pasting this snippet. They don't understand why things are broken or even what `exec` does. All they read from the snippet is — "this is how you replace bash with fish. The NixOS wiki recommends it." [[User:Sandydoo|Sandydoo]] ([[User talk:Sandydoo|talk]]) 15:11, 30 May 2026 (UTC) | :We (devenv) get several reports a week from NixOS users blindly copy-pasting this snippet. They don't understand why things are broken or even what `exec` does. All they read from the snippet is — "this is how you replace bash with fish. The NixOS wiki recommends it." [[User:Sandydoo|Sandydoo]] ([[User talk:Sandydoo|talk]]) 15:11, 30 May 2026 (UTC) | ||
::I agree with you. I am a Nix(OS) noob, so I don't happen to use stuff like <code>nix develop</code> or <code>devenv</code>, so didn't (yet) encounter such problems as you described myself, but can see how that bashrc is problematic. | |||
::<br> | |||
::Since there has been no activity on this for 4 months, I think it's safe to remove the sections in question (don't forget that we also have the Darwin variant). Don't you mind doing the edits yourself? [[User:DHCP|DHCP]] ([[User talk:DHCP|talk]]) 21:11, 31 May 2026 (UTC) | |||
::We should expand the "Setting fish as default shell" section with more terminal options, such as Kitty, and put it before the one about bodging it through bashrc. | |||
::As a NixOS noobie, I looked for the first thing that worked, and since the bashrc was first, I stopped at that, and I suspect this to be common. [[User:QuBe|QuBe]] ([[User talk:QuBe|talk]]) 22:08, 20 June 2026 (UTC) | |||
:::[https://wiki.nixos.org/w/index.php?title=Fish&oldid=32745 Attempted here] let me know what you think. | |||
:::(some formatting issues, fixing on the way) [[User:QuBe|QuBe]] ([[User talk:QuBe|talk]]) 12:21, 22 June 2026 (UTC) | |||