Skip to content

Instantly share code, notes, and snippets.

@zachallaun
Created April 14, 2023 15:52
Show Gist options
  • Save zachallaun/af20e5a2f1fd0f4a1b648750fca8150b to your computer and use it in GitHub Desktop.
Save zachallaun/af20e5a2f1fd0f4a1b648750fca8150b to your computer and use it in GitHub Desktop.
WSL: Open file in browser
# 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