Jump to content

Zsh: Difference between revisions

554 bytes removed ,  12 June 2021
no edit summary
imported>Flexagoon
(Create a zsh page)
 
imported>Flexagoon
No edit summary
Line 4: Line 4:


== Installation ==
== Installation ==
 
See [[Command Shell#Changing Default Shell]].
=== Globally ===
To set zsh as your default shell system-wide, add the following line to your config:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
users.defaultUserShell = pkgs.zsh;
</nowiki>}}
then run {{ic|nixos-rebuild switch}} and reboot your system.
=== For one user only ===
To only set zsh as a default shell for one of the users, add
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
shell = pkgs.zsh;
</nowiki>}}
to this user's section like so:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
users.users.yourname = {}
  ... # Your user configuration
  shell = pkgs.zsh;
};
</nowiki>}}


== Configuration ==
== Configuration ==
Anonymous user