Skip to content

Exiting fish from a keybinding which calls a function #7967

@enricozb

Description

@enricozb

Environment

version: fish, version 3.2.1
uname: Linux xibalba 5.11.16-arch1-1 #1 SMP PREEMPT Wed, 21 Apr 2021 17:22:13 +0000 x86_64 GNU/Linux
term: alacritty

The behavior I'm reporting still occurs under sh -c 'env HOME=$(mktemp -d) fish'.

Problem & Reproduction

The following keybinding correctly exits the shell when typing ctrl+t:

bind \ct exit

However, the following keybinding does not exit the shell when typing ctrl+t:

function myexit
  exit
end
bind \ct myexit

Why is this the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions