nushell: allow installing plugins
When the version of Nushell or any Nushell plugin changes, the plugin registry must be regenerated.
This commit is contained in:
parent
e952e94955
commit
8772bae58c
3 changed files with 38 additions and 3 deletions
|
|
@ -23,6 +23,8 @@
|
|||
}
|
||||
'';
|
||||
|
||||
plugins = [ pkgs.nushellPlugins.formats ];
|
||||
|
||||
shellAliases = {
|
||||
"lsname" = "(ls | get name)";
|
||||
"ll" = "ls -a";
|
||||
|
|
@ -41,8 +43,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.nushell = { };
|
||||
|
||||
nmt.script = let
|
||||
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
|
||||
"home-files/Library/Application Support/nushell"
|
||||
|
|
@ -58,5 +58,7 @@
|
|||
assertFileContent \
|
||||
"${configDir}/login.nu" \
|
||||
${./login-expected.nu}
|
||||
assertFileExists \
|
||||
"${configDir}/plugin.msgpackz"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue