Skip to content

Oh My Posh prompt broken in Bash by PROMPT_COMMAND conflicts #6

@rosstaco

Description

@rosstaco

Problem
The Oh My Posh prompt fails to render in Bash when used with other features (like shell-history) that overwrite PROMPT_COMMAND in .bashrc.

Cause
oh-my-posh uses PROMPT_COMMAND to hook into Bash. If another feature runs after it and overwrites this variable (e.g., PROMPT_COMMAND='history -a') instead of appending, the prompt hook is lost.

Expected Behavior
Oh My Posh should load reliably regardless of other installed features or their ordering in .bashrc.

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