Created
December 10, 2021 14:45
-
-
Save scaryrawr/b02442335b39bacb7ef36cad20a9e937 to your computer and use it in GitHub Desktop.
WSL helper for running Windows commands from within WSL
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
#!/usr/bin/env bash | |
currentDirectory=$(wslpath -w .) | |
cmd.exe /c "pushd $currentDirectory && $@" 2>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment