Skip to content

Instantly share code, notes, and snippets.

@Volune
Created April 10, 2018 09:58
Show Gist options
  • Save Volune/51ec6dc190ee004afe68416a2f62cdf1 to your computer and use it in GitHub Desktop.
Save Volune/51ec6dc190ee004afe68416a2f62cdf1 to your computer and use it in GitHub Desktop.
Tool to help run node from Windows
#/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
wsl cmdnode %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment