You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I adopted option 1 to enable vscode server in wsl. But when I open the terminal in vscode, it goes to sh instead of bash which I actually set as default.
Inside wsl, $SHELL is /run/current-system/sw/bin/bash. However, in vscode, $SHELL becomes /nix/store/sh4d0lnbrapnqjsn1jwb4r07lmwirc8c-sh/bin/sh.
To Reproduce
Steps to reproduce the behavior:
Here is what I set in modules:
Manually set "terminal.integrated.defaultProfile.linux": "bash" in vscode somehow fix the issue, but does not fundamentally solve it. The $SHELL environment variable remains sh instead of the default shell set in nixos.
Bug description
I adopted option 1 to enable vscode server in wsl. But when I open the terminal in vscode, it goes to
sh
instead ofbash
which I actually set as default.Inside wsl,
$SHELL
is/run/current-system/sw/bin/bash
. However, in vscode,$SHELL
becomes/nix/store/sh4d0lnbrapnqjsn1jwb4r07lmwirc8c-sh/bin/sh
.To Reproduce
Steps to reproduce the behavior:
Here is what I set in modules:
and this is how I set my default shell:
Logs
I don't know if it's related but I printed the
$PATH
in vscode's integrated terminal anyway.WSL version
The text was updated successfully, but these errors were encountered: