To install explorer in Bash on Ubuntu on Windows
- open BoUoW
- type these commands:
sudo wget -O /usr/bin/explorer https://gist.githubusercontent.com/judge2020/4450bc62df8adeeb29f02bd5524ab3db/raw/explorer.sh
sudo chmod +x /usr/bin/explorer
Done!
To use, just type explorer
to open the current directory in windows explorer. You can also point it to certain folders like you would in PS/cmd, ex explorer ../..
You can pass a directory or a file name (including relative paths) and it'll open explorer appropriately
this doesn't seem to work for directories within the Ubuntu subsystem's file structures, ie
/home/xxxxx
- executing it in the user home folder opens the current user's Documents folder instead