1
0
Fork 0
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:
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 { 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