Skip to content

Instantly share code, notes, and snippets.

@dcsobral
Created August 6, 2020 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dcsobral/5c5ef8f5c549ad2812e192b70bd350d9 to your computer and use it in GitHub Desktop.
Save dcsobral/5c5ef8f5c549ad2812e192b70bd350d9 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