Skip to content

Prompt tracking breaks in bash when systemd OSC context is enabled #540

Description

@sharkdad

There's a new systemd OSC context feature that breaks a lot of existing shell/term software, see systemd/systemd#39114. This feature is enabled on Fedora 44 and causes ghost.el's prompt tracking to fail, C-c M-p/n don't find prompt instances anywhere.

To get it working again I disable the systemd OSC context with these commands:

rm -f /etc/profile.d/80-systemd-osc-context.sh \
    && mkdir -p /etc/tmpfiles.d \
    && ln -sf /dev/null /etc/tmpfiles.d/20-systemd-osc-context.conf

I think the fix might be something about handling PROMPT_COMMAND when it's an array in ghost.el's shell integration but I don't care enough to look further. Just letting you know more folks might run into it as this rolls out.

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