Nushell: Difference between revisions
imported>Vieta First Nushell entry. Please feel free to change |
imported>Vieta removed <code> |
||
Line 5: | Line 5: | ||
Example if you want Nushell as your default shell. | Example if you want Nushell as your default shell. | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
users.users.myuser= { | |||
... | ... | ||
shell = pkgs.nushell; | shell = pkgs.nushell; | ||
Line 17: | Line 17: | ||
Configuration with [https://starship.rs/ Startship] font. | Configuration with [https://starship.rs/ Startship] font. | ||
{{file|~/.config/nixpkgs/home.nix|nix|<nowiki> | {{file|~/.config/nixpkgs/home.nix|nix|<nowiki> | ||
programs = { | programs = { | ||
nushell = { | nushell = { |
Revision as of 15:25, 14 September 2023
Nushell is a powerfull shell written in Rust. Its goal it is to be a user friendly shell with many buildin features where the user has fun to use it.
Installation
See Command Shell Example if you want Nushell as your default shell.
/etc/nixos/configuration.nix
users.users.myuser= {
...
shell = pkgs.nushell;
};
Configuration
Nushell can be configured with Home Manager.
Example
Configuration with Startship font.
~/.config/nixpkgs/home.nix
programs = {
nushell = {
enable = true;
};
starship = {
enable = true;
settings = {
add_newline = true;
character = {
success_symbol = "[➜](bold green)";
error_symbol = "[➜](bold red)";
};
};
};
};