yuk7 / AlpineWSL

Alpine Linux based WSL distribution. Supports multi-install. Lightest WSL distribution.
https://git.io/alpwsl
MIT License
541 stars 48 forks source link

Setting current directory of Visual Studio Code #8

Closed cbettinger closed 5 years ago

cbettinger commented 5 years ago

I really love Alpine Linux, especially within WSL. I want to use it as the integrated terminal within Visual Studio Code. Setting that within settings.json works fine:

{
   "terminal.integrated.shell.windows": "C:\\Program Files\\Alpine\\Alpine.exe",
   ...
}

The problem is that Alpine sets the current directory to the home directory. The Ubuntu WSL starts on the current project's root directory when used as a integrated terminal in VS Code.

Is there a way to set the current directory manually or - even better - to behave like the Ubuntu WSL?

yuk7 commented 5 years ago

Please use "run" argument,that inherit current directory. ex:Please add this to VSCode's settings.json:

"terminal.integrated.shellArgs.windows": ["run"]
cbettinger commented 5 years ago

That works simply perfect! Thank you very much.