Im in windows terminal and I would like to open directories in file explorer, while in WSL2 Ubuntu.
I tried typing "explorer.exe Desktop/", but it opens Documents, in fact every time I try to run it, it just opens Documents, except when I type "explorer.exe .", then it opens the current directory correctly, but I want it to work with any directory I give it. Any ideas?
Edit 1: I found this function, just add it to your ~/.bashrc and it works
start(){
path=$(wslpath -w "$1")
/mnt/c/Windows/explorer.exe "$path"
}
Type start "Some Path" without quotation marks and it opens the path in file explorer, also I saw that I needed to add quotation marks around argument of explorer.exe