Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

fix broken pipe issue #4

Description

@towry

Problem

When path-git-format is used in a pipeline with commands that close the pipe early (like head -n 1, fzf, or similar), it crashes with a BrokenPipe error instead of exiting gracefully.

Example

zoxide query --list --exclude $PWD | path-git-format --filter --no-bare -f"{path} [{branch}]" | fzf ... | head -n 1
# Error: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions