Fish: Difference between revisions

imported>Mic92
No edit summary
imported>HLandau
No edit summary
Line 1: Line 1:
Fish is the [http://fishshell.com/ Friendly Interactive SHell].
{{DISPLAYTITLE:fish}}
fish is the [http://fishshell.com/ Friendly Interactive SHell].


== Fish as login shell ==
==Setting fish as the login shell==
The following <tt>/etc/nixos/configuration.nix</tt> fragment demonstrates how to enable fish and set it as the default shell for user <tt>foo</tt>.


The following lines in <code>configuration.nix</code> set up fish as a login shell for the user <code>myuser</code>
<syntaxhighlight lang="nix">
{
  ...
  programs.fish.enable = true;


<syntaxhighlight lang="nix">
  users.extraUsers.foo = {
programs.fish.enable = true;
    shell = "/run/current-system/sw/bin/fish";
users.extraUsers.myuser = {
  };
  shell = "/run/current-system/sw/bin/fish";
  ...
};
}
</syntaxhighlight>
</syntaxhighlight>