8000 Exiting fish from a keybinding which calls a function · Issue #7967 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Exiting fish from a keybinding which calls a function #7967

@enricozb

Description

@e
7E90
nricozb

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

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0