Here's what I'm using to open a URL or a file with Google Chrome into incognito mode from Git bash (provided with Git for Windows): 1. Tested on Bash on Windows (Ubuntu 16.04.3 LTS GNU bash, wersja 4.3.48). I find it quite useful, especially while coding ) You can use it as follows: g site: c++ empty string view
Will fail, and you need to use: explorer.exe '\''īy the way, I created bash function to open up Google page: urlencode ()Įcho $1 | sed -e 's:%:%25:g' -e 's: :%20:g' -e 's::%3E:g' -e 's:#:%23:g' -e 's:' Therefore there is a weird bug: URL should not contain ?, so: explorer.exe ''
You can use explorer.exe that can open URL in default browser: explorer.exe ''