Command Shell: Difference between revisions
Sohomdatta1 (talk | contribs) No edit summary |
added a small paragraph about shell aliasing |
||
| 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 == | ||