Command Shell: Difference between revisions

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.
DHCP (talk | contribs)
m Aliases: fix indentation
 
(2 intermediate revisions by 2 users not shown)
Line 39: Line 39:
users.users.myuser.useDefaultShell = true;
users.users.myuser.useDefaultShell = true;
</nowiki>}}
</nowiki>}}
== Aliases ==
You can set aliases for all shells via:
{{File|3=environment.shellAliases = {
  rebuild = "sudo nixos-rebuild switch --flake /etc/nixos/#nixos";
};|name=/etc/nixos/configuration.nix|lang=nix}}


== Using a different shell in nix-shell and nix develop ==
== Using a different shell in nix-shell and nix develop ==
Line 86: Line 92:
* [[Flakes]]
* [[Flakes]]


== References ==
[[Category:Configuration]]
[[Category:Configuration]]
[[Category:Software]]
[[Category:Software]]
[[Category:Shell]]
[[Category:Shell]]