Last active
September 23, 2023 17:41
-
-
Save mojabyte/7cdebfd426319bb1dee4467ca703ce84 to your computer and use it in GitHub Desktop.
Open files, directories, and URL from WSL
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
# Add this function to ~/.bashrc | |
function open() { | |
cmd.exe /C start `wslpath -w "$1"` | |
} | |
alias openurl='cmd.exe /C start' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage examples: