Replies: 7 comments
-
It can be changed with automount.root option in wsl.conf file. See https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconf |
Beta Was this translation helpful? Give feedback.
-
Put the following in
There are more interesting options (like |
Beta Was this translation helpful? Give feedback.
-
@oldium @Biswa96 I think some need to provide environment variables, so that there are relevant standards for the adaptation of multiple environments for the development of some projects. |
Beta Was this translation helpful? Give feedback.
-
Set the WSLENV variable like this in Command Prompt |
Beta Was this translation helpful? Give feedback.
-
Yes, why not bring these commonly used ones directly to WSL2? |
Beta Was this translation helpful? Give feedback.
-
If you need a better/faster access to common directories, create links from WSL to your Windows folders you need. |
Beta Was this translation helpful? Give feedback.
-
Because someone may use the USERPROFILE variable in WSL2 with different value irrespective of what the value is in Windows side. |
Beta Was this translation helpful? Give feedback.
-
╭─root@XS-WanFengDesktop in /mnt/d/.repos/.github/xs-fork/dubbo on jdk19 ✔ (origin/jdk19) ╰$
As above:
When I need a long path to access files in D drive, can the prefix
/ mnt/ d
be simplified to, such as/ d /
?Or provide built-in commands to directly access Windows common directories.
For example:
C Driver: wdc.
D Driver: wdd.
E Driver:wde.
User Profile Home:wup.
User Home Download:wud
Beta Was this translation helpful? Give feedback.
All reactions