Add yazi custom shell plugin
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user