Skip to content

overwrites existing $PROMPT_COMMAND #574

Description

@laur89

Sourcing gitprompt.sh replaces prompt command, not appends to it; following in ~/.bashrc:

$ echo "pre prompt: [$PROMPT_COMMAND]"
$ source "/installation/path/bash-git-prompt/gitprompt.sh"
$ echo "post prompt: [$PROMPT_COMMAND]"

...produces this:

pre prompt: [history -a]
post prompt: [setLastCommandState]

I would expect existing value to survive the import.

Running v 0bca406


Could this be the cause for issues like #496?

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