Command Shell: Difference between revisions
m hyperlink shell, fish, and nushell |
m I added a small section helping users to fix a strange problem with the fish shell when using it alongside flakes. I think it was worth adding because I followed this page, but was suprised to find strange output when I ran a command that didn't exist. |
||
| Line 75: | Line 75: | ||
* Nested shells will require you to type <code>exit</code> twice, once to leave the inner shell and once to exit the Nix shell environment itself. | * Nested shells will require you to type <code>exit</code> twice, once to leave the inner shell and once to exit the Nix shell environment itself. | ||
* Potential for alias conflicts as overriding commands can introduce unintended side effects in scripts or other tooling that expects the standard behavior. | * Potential for alias conflicts as overriding commands can introduce unintended side effects in scripts or other tooling that expects the standard behavior. | ||
== Using Flakes == | |||
If you are using [[Flakes]] with fish, the 'command-not-found' error message will not work correctly, but can be fixed by disabling the builtin Nix <code>command-not-found</code> program:<ref>https://github.com/NixOS/nixpkgs/issues/425613#issuecomment-3076081921</ref> | |||
{{File|3=programs.command-not-found.enable = false;|name=/etc/nixos/configuration.nix|lang=nix}} | |||
== See also == | == See also == | ||
| Line 80: | Line 84: | ||
* [[Nushell]] | * [[Nushell]] | ||
* [[Zsh]] | * [[Zsh]] | ||
* [[Flakes]] | |||
[[Category:Configuration]] | [[Category:Configuration]] | ||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:Shell]] | [[Category:Shell]] | ||