Open fyang93 opened 1 month ago
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.
I found a related issue here. It seems that enabling the wsl.warpBinSh
option may have caused some problems and needs further attention.
I remember wsl.warpBinSh
is working fine before. I think commit 5a7c64a broke it but I am not sure.
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