MyNixOS website logo
option

programs.fish.functions.<name>.onEvent

Tells fish to run this function when the specified named event is emitted. Fish internally generates named events e.g. when showing the prompt.

Declarations
    Type
    null or string or list of string
    Default
    null