mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
20 lines
465 B
Nix
20 lines
465 B
Nix
{ ... }:
|
|
{
|
|
flake.homeModules.home-nushell-last =
|
|
{ ... }:
|
|
{
|
|
programs.nushell.extraConfig = ''
|
|
$env.config.hooks.display_output = {||
|
|
tee { table --expand | print }
|
|
# SQLiteDatabase doesn't support equality comparisons.
|
|
| try { if $in != null { $env.last = $in } }
|
|
}
|
|
|
|
# Retrieve the output of the last command.
|
|
def _ []: nothing -> any {
|
|
$env.last?
|
|
}
|
|
'';
|
|
};
|
|
}
|