Talk:Fish: Difference between revisions
| (4 intermediate revisions by 3 users not shown) | |||
| Line 10: | Line 10: | ||
Too many users copy-paste provided snippets from wiki without understanding how it works (i've done that myself). So i propose that make this script more accurate :-) [[User:Pigeon|Pigeon]] ([[User talk:Pigeon|talk]]) 18:40, 24 January 2026 (UTC) | Too many users copy-paste provided snippets from wiki without understanding how it works (i've done that myself). So i propose that make this script more accurate :-) [[User:Pigeon|Pigeon]] ([[User talk:Pigeon|talk]]) 18:40, 24 January 2026 (UTC) | ||
:Hi, I'm the new @Pigeon. On my way to spare people from copy-pasting bad scripts from wikis :) | |||
:I've updated the section in question in [https://wiki.nixos.org/w/index.php?title=Fish&oldid=31760 this edit]. If the new version is worse, let's discuss here on how to fix and improve it. [[User:DHCP|DHCP]] ([[User talk:DHCP|talk]]) 21:20, 13 May 2026 (UTC) | |||
:I'd like to propose removing the snippet entirely. The only safe approach, if you want to avoid setting fish as the login shell, is to configure your terminal emulator to launch your shell program of choice. | |||
: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) | |||
::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) | |||