Created
April 14, 2023 15:52
-
-
Save zachallaun/af20e5a2f1fd0f4a1b648750fca8150b to your computer and use it in GitHub Desktop.
WSL: Open file in browser
This file contains 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
# Usage: open some_file.html | |
# Open a file in browser | |
function open () { | |
explorer.exe $(wslpath -w $(realpath $1)) | |
return 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment