Skip to content

bash.exe, wsl.exe & ubuntu.exe doesn't load/read ~/.bashrc #2816

@zmni

Description

@zmni
  1. Version: Microsoft Windows [Version 10.0.16299.192]

  2. Steps to reproduce:

    1. From inside WSL
      1. Install nvm (or any programs/scripts source from .bashrc).
      2. Install node.
      3. Install global any node cli module.
      4. Make sure everything works.
    2. Open Cmd/Powershell
      1. Run bash.exe -c 'which nvm' or bash.exe -c 'which anything-installed-via-nvm-or-npm-global'.
      2. Same as above for wsl.exe and ubuntu.exe run.
  3. Terminal output: Nothing.

  4. Expected output: Should output binary path. Can be executed.

  5. My also apply to other distros and shells.

Is this intentional? If not, is there any workaround to this problem? If anyone knows, please share. Thanks.

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