Created
April 10, 2018 09:58
-
-
Save Volune/51ec6dc190ee004afe68416a2f62cdf1 to your computer and use it in GitHub Desktop.
Tool to help run node from Windows
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
#/bin/sh | |
for a in $*; do | |
echo "$a" | awk 'match($0, /^(\w):(\\.*)$/, m) { p = m[2]; gsub(/\\/,"/",p); print "/mnt/" tolower(m[1]) p; next }; { print }'; | |
done | xargs node |
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
wsl cmdnode %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment