I'm in a Windows Subsystem for Linux (WSL) Ubuntu 20.04 LTS
.
My ~/.zshrc
file currently has the following appended to the end of the file.
export BROWSER='/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe
When I try to run
xdg-open .
It fails to open the current working directory because the current browser is not compatible.
When running xdg-open .
, I expect as if my ~/.zshrc
uses:
export BROWSER="powershell.exe /C start"
But only in the case where xdg-open
is used. I would like to use brave.exe for all other cases as my default browser.
What is the best way to achieve the above?