depot/third_party/home-manager/tests/modules/programs/nushell/settings.nix
Default email cfcd52ff70 Project import generated by Copybara.
GitOrigin-RevId: 70c5b268e10025c70823767f4fb49e240b40151d
2021-11-05 00:42:44 +08:00

33 lines
591 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.nushell = {
enable = true;
settings = mkMerge [
{
edit_mode = "vi";
startup = [ "alias la [] { ls -a }" ];
completion_mode = "circular";
key_timeout = 10;
}
{
startup = [ "alias e [msg] { echo $msg }" ];
no_auto_pivot = true;
}
];
};
test.stubs.nushell = { };
nmt.script = ''
assertFileContent \
home-files/.config/nu/config.toml \
${./settings-expected.toml}
'';
};
}