-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] Best practices for data storage location/home directory #2040
Comments
I have my projects at I develop with VSCode under Windows, but I run the projects only under WSL. I use a special script in my projects which makes sure that npm tasks are always run under WSL even if they are called through a git commit hook which is triggered by Windows Git from VSCode, for example. I have configured my git config under both Windows and WSL with This setup has a few inconveniences (one of them is that If I needed better support of symlinks or better FS performance, I would switch to using a WebDAV or SSH server in WSL and map my home folder (or even root) to a drive letter in Windows. |
My setup is actually very similar to @CherryDT 's. I exclusively use ssh et al from within WSL so I don't need the key-management scripts. |
if I needed better support of symlinks or better FS performance, I would switch to using a WebDAV or SSH server in WSL and map my home folder (or even root) to a drive letter in Windows @CherryDT how would you map your Linux FS to Windows with a SSH server running? |
@aseering On my end it's basically just Git inside VSCode which is using the Windows-side SSH. |
Thanks. I'll keep these tips in mind. |
Keeping in mind that #1475 (*1) and (*2) what is the consensus on the best place for storing your projects?
*1) Windows and Linux symlinks are incompatible
*2) You are not supposed to edit files inside WSL (both system and user directory) from Windows applications.
I was leaning towards having my Linux $HOME directory same as my Windows %PROFILEDIR% in /etc/passwd, however the dotfiles in both cases would have incompatible link format. So that's out.
However, I'm thinking it would still be better if everything was stored on the "windows side" so that I can edit files from both sides, modulo the link related problems.? My primary environment for development would be WSL so I would do the filesystem manipulations on the WSL side only.
My question is what do you guys think about it? Does anybody have any cons to this approach.
The text was updated successfully, but these errors were encountered: