1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

fish: accept multiple events (#6489)

This commit is contained in:
isabel 2025-02-18 21:22:42 +00:00 committed by GitHub
parent a135aae1be
commit 4044ad191f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ let
};
onEvent = mkOption {
type = with types; nullOr str;
type = with types; nullOr (either str (listOf str));
default = null;
description = ''
Tells fish to run this function when the specified named event is
@ -511,7 +511,7 @@ in {
mods = with def;
modifierStr "description" description ++ modifierStr "wraps" wraps
++ modifierStr "on-event" onEvent
++ lib.concatMap (modifierStr "on-event") (lib.toList onEvent)
++ modifierStr "on-variable" onVariable
++ modifierStr "on-job-exit" onJobExit
++ modifierStr "on-process-exit" onProcessExit