Skip to content

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

Closed

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.

Activity

  1. mattwojo commented on Jul 8, 2022

    @mattwojo
    Contributor

    Thanks happylynx. Seems like a good recommendation to me. Updated in 2562bf5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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