Skip to content

Commit

Permalink
fish: accept multiple events (#6489)
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses authored Feb 18, 2025
1 parent a135aae commit 4044ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/programs/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4044ad1

Please sign in to comment.