mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
fish: accept multiple events (#6489)
This commit is contained in:
parent
a135aae1be
commit
4044ad191f
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
onEvent = mkOption {
|
onEvent = mkOption {
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr (either str (listOf str));
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
Tells fish to run this function when the specified named event is
|
Tells fish to run this function when the specified named event is
|
||||||
|
|
@ -511,7 +511,7 @@ in {
|
||||||
|
|
||||||
mods = with def;
|
mods = with def;
|
||||||
modifierStr "description" description ++ modifierStr "wraps" wraps
|
modifierStr "description" description ++ modifierStr "wraps" wraps
|
||||||
++ modifierStr "on-event" onEvent
|
++ lib.concatMap (modifierStr "on-event") (lib.toList onEvent)
|
||||||
++ modifierStr "on-variable" onVariable
|
++ modifierStr "on-variable" onVariable
|
||||||
++ modifierStr "on-job-exit" onJobExit
|
++ modifierStr "on-job-exit" onJobExit
|
||||||
++ modifierStr "on-process-exit" onProcessExit
|
++ modifierStr "on-process-exit" onProcessExit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue