Add yazi custom shell plugin

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-13 14:47:14 +01:00
parent 000a8c64b4
commit 6505f74ef3
17 changed files with 54 additions and 17 deletions

View File

@@ -6,10 +6,13 @@
config,
lib,
pkgs,
inputs,
system,
...
}:
let
hmConfig = config.home-manager.users.${user};
selfPkgs = inputs.self.packages.${system};
in
{
home-manager.users.${user} = {
@@ -123,6 +126,16 @@ in
run = "plugin smart-enter";
desc = "Enter the child directory, or open the file";
}
{
on = ";";
run = "plugin custom-shell -- auto --interactive";
desc = "Run a shell command";
}
{
on = ":";
run = "plugin custom-shell -- auto --interactive --block";
desc = "Run a shell command (block until finishes)";
}
{
on = "!";
run = "shell \"$SHELL\" --block";
@@ -179,6 +192,8 @@ in
mount
mediainfo
;
custom-shell = selfPkgs.yazi-plugin-custom-shell;
};
};