Created
August 6, 2020 15:24
-
-
Save dcsobral/5c5ef8f5c549ad2812e192b70bd350d9 to your computer and use it in GitHub Desktop.
"open" for Bash on WSL in Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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