Nushell: Difference between revisions
imported>Vieta extraConfig |
imported>Schrottkatze removed redundant sentence |
||
Line 1: | Line 1: | ||
[https://www.nushell.sh/ Nushell] is a powerfull [[Command Shell|shell]] written in Rust | [https://www.nushell.sh/ Nushell] is a powerfull [[Command Shell|shell]] written in Rust. | ||
== Installation == | == Installation == |
Revision as of 20:23, 28 October 2023
Nushell is a powerfull shell written in Rust.
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.
Examples
Configuration with Startship font.
~/.config/nixpkgs/home.nix
programs = {
nushell = { enable = true;
# The config.nu can be anywhere you want if you like to edit your Nushell with Nu
configFile.source = ./.../config.nu;
# If you like to add extra configuration for nu like adding execution paths
extraConfig = ''
$env.config = {
show_banner: false,
}
$env.PATH = ($env.PATH |
split row (char esep) |
prepend /home/myuser/.apps |
append /usr/bin/env
)
'';
};
starship = { enable = true;
settings = {
add_newline = true;
character = {
success_symbol = "[➜](bold green)";
error_symbol = "[➜](bold red)";
};
};
};
};