Skip to content

Instantly share code, notes, and snippets.

@6qat
Forked from dcsobral/open.sh
Created August 6, 2020 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 6qat/16e409f273ca1ac11c0da60362b97a14 to your computer and use it in GitHub Desktop.
Save 6qat/16e409f273ca1ac11c0da60362b97a14 to your computer and use it in GitHub Desktop.
"open" for Bash on WSL in Windows
open ()
{
# The first argument to start needs to be empty to avoid issues when paths have spaces
cmd.exe /C start "" "$(wslpath -w "$1")"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment