I've recently set a working copy of Ubuntu-20.04 WSL2 called Ubuntu-20.04-copy01 but I can't open/create files with vscode from the terminal, for example: code main.rs
as with the original distribution.
The output of echo $PATH:
/home/rogelio/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
The original distro output of the same command is
/home/rogelio/anaconda3/bin:/home/rogelio/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Users/rogel/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/rogel/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin
Would it be enough if I configure the .bashrc file of my copy of ubuntu to add /mnt/c/Users/rogel/AppData/Local/Programs/Microsoft VS Code/bin?
I'm not sure if this would create conflicts.
I also changed the default distro used by wsl using wsl --setdefault Ubuntu-20.04-copy01
.
Thanks!