Skip to content

WSL - bash: the command is repeated in PROMPT_COMMAND in nested shells #556

@happylynx

Description

@happylynx

Regarding https://docs.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory#bash: It is suggested to put the snippet in .bashrc that is evaluated on start of every bash process, even nested ones. That causes repeated appending to PROMPT_COMMAND variable.

Who about suggesting to use .bash_profile config file?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions