Skip to content

Sending keypresses before fish is ready can break it #12304

Description

@CGamesPlay

I am using iTerm 2 Build 3.6.6. Fish is 4.3.2. I have a custom keybinding for ^O in my fish config. I have noticed that sometimes when I press the keybinding before fish is ready, the fish session is completely busted.

To reproduce, configure iTerm 2 to launch a new window with this command: sh -c "sleep 1; exec /opt/local/bin/fish --no-config" (screenshot demonstrates this)

Image

Now open a new window and within 1 second press ^O. The prompt will never appear, and fish is completely broken.

Image

Note that the last command demonstrates that fish is receiving and running commands: ~/Downloads/happy.txt is created. But no command produces any output and the prompt doesn't appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions